7e1f315c9506f86268f94046fedee7c361689ee1
[selectricity-live] / app / views / election / edit_candidates.rhtml
1 <div id="title-header">
2   <span class="header">Edit Candidates</span>
3   <span class="subheader"></span>
4 </div>
5
6 <div class="clear-div"></div>
7
8 <div class="normal-header">
9   <span class="header">Enter New Candidate</span>
10   <span class="subheader"></span>
11 </div>
12
13 <%= error_messages_for :candidate %>
14
15 <% form_tag( { :action => :add_candidate, :id => @election.id },
16               :multipart => true ) do %>
17 <%= render :partial => 'candidate_form' %>
18 <p><%= submit_tag "Add Candidate" %></p>
19 <% end %>
20
21
22 <div class="normal-header">
23   <span class="header">Current Candidates</span>
24   <span class="subheader"></span>
25 </div>
26
27
28 <% unless @election.candidates.empty? %>
29   <% @election.candidates.each do |candidate| %>
30     <% @current_candidate = candidate %>
31     <%= render :partial => 'candidate_line_edit' %>
32   <% end %>
33
34 <% else %>
35   <p>There are no candidates registered for this election.</p>
36 <% end %>
37
38 <div class="normal-header">
39   <span class="header">Continue</span>
40   <span class="subheader"></span>
41 </div>
42
43 <p>When you are done entering candidates, please click the button below
44 to proceed to the next step.</p>
45
46 <%= button_to "Proceed to Next Step", :action => 'new_voters', :id => @election %>

Benjamin Mako Hill || Want to submit a patch?