1 <div id="title-header">
2 <span class="header">Election Overview</span>
3 <span class="subheader"></span>
6 <% if @election.active? %>
7 <div id="status">Vote is in currently in progress. Return to
8 this page for results on <%= @election.enddate %>.</div>
9 <% elsif @election.done? %>
10 <div id="status">Election is finished. <%= link_to "View results",
11 :action => 'results', :id => @election.id %>.</div>
13 <p style="text-align: right;">
14 <%= link_to "Edit General Information",
15 :action => 'edit_general_information', :id => @election.id %>
19 <p><strong>Summary</strong></p>
22 <%= h(@election.name) %>
25 <p><strong>Description</strong></p>
28 <%= h(@election.description) %>
31 <p><strong>Additional Information</strong></p>
33 <ul> <li>Elections will end at <strong><%= @election.enddate
34 %></strong>.</li> <li>Elections results <strong><% if
35 @election.early_results %>will be<% else %>will not be<% end
36 %></strong> will be visible while election is in progress.</li>
38 <% if @election.embeddable %>
39 <li>Elections <strong>will be</strong> embeddable.</li>
44 <% unless @election.authenticated -%>
45 <p><strong>Link</strong></p>
46 <%= (link_to ("Go Vote!",
47 :controller => 'voter', :action => 'index', :election_id => @election.id)).to_s %>
50 <div class="normal-header">
51 <span class="header">Candidates</span>
52 <span class="subheader"></span>
56 <% if not (@election.active? or @election.done?) %>
57 <p style="text-align: right;">
58 <%= link_to "Edit Candidates",
59 :action => 'edit_candidates', :id => @election.id %></p>
63 <% if @election.candidates.empty? %>
64 <p><em>There are currently no candidates registered.</em>
65 <%= link_to "Add some!", :action => 'edit_candidates', :id => @election.id %>
68 <%= render :partial => 'candidate_list' %>
71 <div class="normal-header">
72 <span class="header">Voters</span>
73 <span class="subheader"></span>
76 <% if not (@election.active? or @election.done?) %>
77 <p style="text-align: right;">
78 <%= link_to "Change Voters/Options",
79 :action => 'edit_voters', :id => @election.id %></p>
82 <% if not @election.authenticated? %>
83 <p><em>This election is open the public.</em></p>
84 <% elsif @election.voters.empty? %>
85 <p><em>There are currently no voters registered. </em>
86 <%= link_to "Add some!", :action => 'edit_voters',
87 :id => @election.id %></p>
89 <%= render :partial => 'voter_list' %>
90 <p><em><%= link_to "Add or remove voters.", :action => 'edit_voters',
91 :id => @election.id unless @election.active? or @election.done? %>
95 <% if not (@election.active? or @election.done?) %>
97 <div class="normal-header">
98 <span class="header">Start Election</span>
99 <span class="subheader"></span>
102 <% if @election.start_blockers.length > 0 %>
103 <p>Your vote cannot be started for the following reasons:</p>
105 <% for reason in @election.start_blockers %>
106 <li><%= reason %></li>
110 <p>Please check everything carefully on this page before starting this
111 vote. Once you begin the vote, you will <em>not</em> be able to add or
112 change candidates, modify the voting lists, or change the end
115 <p>When you begin the vote, the following will happen:</p>
118 <li>The vote will be "frozen" so that further edits to the
119 candidate list and voting list cannot occur.</li>
120 <% if @election.authenticated? %>
121 <li>All voters will be emailed notifying them that the vote has
122 begun and of their unique login token.</li>
126 <%= button_to 'Start Election!', :action => 'start_election', :id => @election.id %>
129 <% elsif @election.embeddable? %>
131 <div class="normal-header">
132 <span class="header">Embedding</span>
133 <span class="subheader"></span>
137 <p>To embed your election, copy and paste the following code into your
140 <pre><%= h("<iframe src='") + votepassword_url(:urlpassword => "open." + @election.id.to_s, :embed => "true") + h("' width='330px' height='370px'>") %>
141 <%= h("</iframe>") %></pre>