Allow deleting candidates
This commit is contained in:
parent
15daf75c38
commit
4462159b93
2 changed files with 13 additions and 1 deletions
|
|
@ -17,6 +17,9 @@
|
|||
<% @vote.candidates.each do |candidate| %>
|
||||
<h3><%= candidate.name %></h3>
|
||||
<p><%= candidate.description %></p>
|
||||
<form action="/votes/<%= @vote.secure_id %>/candidates/<%= candidate.id %>/delete" method="post">
|
||||
<button type="submit">Delete candidate</button>
|
||||
</form>
|
||||
<% end %>
|
||||
|
||||
<h3>Add candidate</h3>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue