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>
45 <div class="normal-header">
46 <span class="header">Candidates</span>
47 <span class="subheader"></span>
51 <% if not (@election.active? or @election.done?) %>
52 <p style="text-align: right;">
53 <%= link_to "Edit Candidates",
54 :action => 'edit_candidates', :id => @election.id %></p>
58 <% if @election.candidates.empty? %>
59 <p><em>There are currently no candidates registered.</em>
60 <%= link_to "Add some!", :action => 'edit_candidates', :id => @election.id %>
63 <%= render :partial => 'candidate_list' %>
66 <div class="normal-header">
67 <span class="header">Voters</span>
68 <span class="subheader"></span>
71 <% if not (@election.active? or @election.done?) %>
72 <p style="text-align: right;">
73 <%= link_to "Change Voters/Options",
74 :action => 'edit_voters', :id => @election.id %></p>
77 <% if not @election.authenticated? %>
78 <p><em>This election is open the public.</em></p>
79 <% elsif @election.voters.empty? %>
80 <p><em>There are currently no voters registered. </em>
81 <%= link_to "Add some!", :action => 'edit_voters',
82 :id => @election.id %></p>
84 <%= render :partial => 'voter_list' %>
85 <p><em><%= link_to "Add or remove voters.", :action => 'edit_voters',
86 :id => @election.id unless @election.active? or @election.done? %>
90 <% if not (@election.active? or @election.done?) %>
92 <div class="normal-header">
93 <span class="header">Start Election</span>
94 <span class="subheader"></span>
97 <% if @election.start_blockers.length > 0 %>
98 <p>Your vote cannot be started for the following reasons:</p>
100 <% for reason in @election.start_blockers %>
101 <li><%= reason %></li>
105 <p>Please check everything carefully on this page before starting this
106 vote. Once you begin the vote, you will <em>not</em> be able to add or
107 change candidates, modify the voting lists, or change the end
110 <p>When you begin the vote, the following will happen:</p>
113 <li>The vote will be "frozen" so that further edits to the
114 candidate list and voting list cannot occur.</li>
115 <% if @election.authenticated? %>
116 <li>All voters will be emailed notifying them that the vote has
117 begun and of their unique login token.</li>
121 <%= button_to 'Start Election!', :action => 'start_election', :id => @election.id %>
124 <% elsif @election.embeddable? %>
126 <div class="normal-header">
127 <span class="header">Embedding</span>
128 <span class="subheader"></span>
132 <p>To embed your election, copy and paste the following code into your
135 <pre><%= h("<iframe src='") + votepassword_url(:urlpassword => "open." + @election.id.to_s, :embed => "true") + h("' width='330px' height='370px'>") %>
136 <%= h("</iframe>") %></pre>