Require being an organizer to edit a draft vote
This commit is contained in:
parent
97d4df395d
commit
a2e41bdc2d
3 changed files with 25 additions and 1 deletions
18
views/votes_show_draft.erb
Normal file
18
views/votes_show_draft.erb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<h1><%= @vote.title %> (Draft)</h1>
|
||||
|
||||
<p><%= @vote.description %></p>
|
||||
|
||||
<h2>Organizers</h2>
|
||||
|
||||
<ul>
|
||||
<% @vote.organizers.each do |organizer| %>
|
||||
<li><%= organizer.user.email %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<h2>Candidates</h2>
|
||||
|
||||
<% @vote.candidates.each do |candidate| %>
|
||||
<h3><%= candidate.name %></h3>
|
||||
<p><%= candidate.description %></p>
|
||||
<% end %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue