1 <h1>Vote Information</h1>
3 <% if @election.active? %>
4 <div id="status">Vote is in currently in progress. Return to
5 this page for results on <%= @election.enddate %>.</div>
6 <% elsif @election.done? %>
7 <div id="status">Election is finished. <%= link_to "View results",
8 :action => 'results', :id => @election.id %>.</div>
13 <p><strong>Summary</strong></p>
16 <%= h(@election.name) %>
19 <p><strong>Description</strong></p>
22 <%= h(@election.description) %>
25 <p><strong>End Date</strong></p>
28 <%= @election.enddate %>
31 <% unless @election.active %>
32 <p><%= link_to "Edit overview.", :action => 'edit', :id => @election.id %></p>
37 <% unless @election.candidates.empty? %>
38 <%= render :partial => 'candidate_list' %>
39 <% unless @election.active %>
40 <p><%= link_to "Add, remove, or edit candidates.", :action => 'edit_candidates', :id => @election.id %></p>
43 <p><em>There are currently no candidates registered. <%= link_to "Add some!", :action => 'edit_candidates', :id => @election.id unless @election.active %></em></p>
49 <% unless @election.voters.empty? %>
50 <%= render :partial => 'voter_list' %>
51 <%= link_to "Add or remove voters.", :action => 'edit_voters', :id => @election.id unless @election.active %></em></p>
53 <p><em>There are currently no voters registered. <%= link_to "Add some!", :action => 'edit_voters', :id => @election.id unless @election.active %></em></p>
56 <% unless @election.active? %>
57 <h2>Start Election</h2>
59 <% if @election.start_blockers.length > 0 %>
60 <p>Your vote cannot be started for the following reasons:</p>
62 <% for reason in @election.start_blockers %>
63 <li><%= reason %></li>
67 <p>Please check everything carefully on this page before starting this
68 vote. Once you begin the vote, you will <em>not</em> be able to add or
69 change candidates, modify the voting lists, or change the end
72 <p>When you begin the vote, the following will happen:</p>
75 <li>The vote will be "frozen" so that further edits to the
76 candidate list and voting list cannot occur.</li>
77 <li>All voters will be emailed notifying them that the vote has
78 begun and of their unique login token.</li>
81 <%= button_to 'Start Election!', :action => 'start_election', :id => @election.id %>