2 <h1>Vote Information</h1>
4 <% if @election.active? %>
5 <div id="status">Vote is in currently in progress. Return to
6 this page for results on <%= @election.enddate %>.</div>
7 <% elsif @election.done? %>
8 <div id="status">Election is finished. <%= link_to "View results",
9 :action => 'results', :id => @election.id %>.</div>
14 <p><strong>Summary</strong></p>
17 <%= h(@election.name) %>
20 <p><strong>Description</strong></p>
23 <%= h(@election.description) %>
26 <p><strong>End Date</strong></p>
29 <%= @election.enddate %>
32 <% unless @election.active %>
33 <p><%= link_to "Edit overview.", :action => 'edit', :id => @election.id %></p>
38 <% unless @election.candidates.empty? %>
39 <%= render :partial => 'candidate_list' %>
40 <% unless @election.active %>
41 <p><%= link_to "Add, remove, or edit candidates.", :action => 'edit_candidates', :id => @election.id %></p>
44 <p><em>There are currently no candidates registered. <%= link_to "Add some!", :action => 'edit_candidates', :id => @election.id unless @election.active %></em></p>
50 <% unless @election.voters.empty? %>
51 <%= render :partial => 'voter_list' %>
52 <%= link_to "Add or remove voters.", :action => 'edit_voters', :id => @election.id unless @election.active %></em></p>
54 <p><em>There are currently no voters registered. <%= link_to "Add some!", :action => 'edit_voters', :id => @election.id unless @election.active %></em></p>
57 <% unless @election.active %>
58 <h2>Start Election</h2>
60 <% if @election.start_blockers.length > 0 %>
61 <p>Your vote cannot be started for the following reasons:</p>
63 <% for reason in @election.start_blockers %>
64 <li><%= reason %></li>
68 <p>Please check eveything carefully on this page before starting this
69 vote. Once you begin the vote, you will <em>not</em> be able to add or
70 change candidates, modify the voting lists, or change the end
73 <p>When you begin the vote, the following will happen:</p>
76 <li>The vote will be "frozen" so that further edits to the
77 candidate list and voting list cannot occur.</li>
78 <li>All voters will be emailed notifying them that the vote has
79 begun and of their unique login token.</li>
82 <%= button_to 'Start Election!', :action => 'start_election', :id => @election.id %>