Allow editing candidates
This commit is contained in:
parent
62e70e3935
commit
a5a9e92e18
3 changed files with 40 additions and 0 deletions
|
|
@ -24,6 +24,9 @@
|
|||
<div class="card-body">
|
||||
<h3 class="mb-3"><%= candidate.name %></h3>
|
||||
<%= markdown(candidate.description) %>
|
||||
<form action="/votes/<%= @vote.secure_id %>/candidates/<%= candidate.id %>" method="get" class="mb-3">
|
||||
<button type="submit" class="btn btn-outline-primary"><%= _("Edit") %></button>
|
||||
</form>
|
||||
<form action="/votes/<%= @vote.secure_id %>/candidates/<%= candidate.id %>/delete" method="post">
|
||||
<button type="submit" class="btn btn-outline-danger"><%= _("Delete") %></button>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue