b5f06ff31856dd1e0822ed12cf5388f353a7509f
[selectricity-live] / app / views / election / edit_candidates.rhtml
1 <h1><strong><%= @election.name %>:</strong> Edit Candidates</h1>
2
3 <% unless @election.candidates.empty? %>
4   <p>The following are valid options or candidates in this election:</p>
5
6   <% @election.candidates.each do |candidate| %>
7     <% @current_candidate = candidate %>
8     <%= render :partial => 'candidate_line_edit' %>
9   <% end %>
10
11 <% else %>
12   <p>There are no candidates registered for this election.</p>
13 <% end %>
14 <p>Please enter new candidates below.</p>
15 <%= render :partial => 'candidates_form' %>
16 <%= button_to "Done!", :action => 'show', :id => @election %>

Benjamin Mako Hill || Want to submit a patch?