Allow deleting candidates

This commit is contained in:
ricola 2025-04-06 17:04:31 -06:00
parent 15daf75c38
commit 4462159b93
2 changed files with 13 additions and 1 deletions

View file

@ -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>