1 <div id="title-header">
2 <span class="header">Edit Candidates</span>
3 <span class="subheader"></span>
6 <div class="clear-div"></div>
8 <% if @election.active == 0 %>
10 <div class="normal-header">
11 <span class="header">Enter New Candidate</span>
12 <span class="subheader"></span>
15 <%= error_messages_for :candidate %>
17 <% form_tag( { :action => :add_candidate, :id => @election.id },
18 :multipart => true ) do %>
19 <%= render :partial => 'candidate_form' %>
20 <p><%= submit_tag "Add Candidate" %></p>
24 <div class="normal-header">
25 <span class="header">Current Candidates</span>
26 <span class="subheader"></span>
30 <% unless @election.candidates.empty? %>
31 <% @election.candidates.each do |candidate| %>
32 <% @current_candidate = candidate %>
33 <%= render :partial => 'candidate_line_edit' %>
37 <p>There are no candidates registered for this election.</p>
40 <div class="normal-header">
41 <span class="header">Continue</span>
42 <span class="subheader"></span>
45 <p>When you are done entering candidates, please click the button below
46 to proceed to the next step.</p>
48 <%= button_to "Proceed to Next Step", :action => 'new_voters', :id => @election %>
52 <p>You can not edit the list of candidates once the election has begun.
53 please return to the <%= link_to "election overview page", :action =>
54 'show', :id => @election.id %>.</p>