1 <div id="title-header">
2 <span class="header">Edit Candidates</span>
3 <span class="subheader"></span>
6 <div class="clear-div"></div>
8 <div class="normal-header">
9 <span class="header">Enter New Candidate</span>
10 <span class="subheader"></span>
13 <%= error_messages_for :candidate %>
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>
22 <div class="normal-header">
23 <span class="header">Current Candidates</span>
24 <span class="subheader"></span>
28 <% unless @election.candidates.empty? %>
29 <% @election.candidates.each do |candidate| %>
30 <% @current_candidate = candidate %>
31 <%= render :partial => 'candidate_line_edit' %>
35 <p>There are no candidates registered for this election.</p>
38 <div class="normal-header">
39 <span class="header">Continue</span>
40 <span class="subheader"></span>
43 <p>When you are done entering candidates, please click the button below
44 to proceed to the next step.</p>
46 <%= button_to "Proceed to Next Step", :action => 'new_voters', :id => @election %>