+ <%= render :partial => 'voter_list' %>
+ <p><em><%= link_to "Add or remove voters.", :action => 'edit_voters',
+ :id => @election.id unless @election.active? or @election.done? %>
+ </em></p>
+<% end %>
+
+<% if not (@election.active? or @election.done?) %>
+
+<div class="normal-header">
+ <span class="header">Start Election</span>
+ <span class="subheader"></span>
+</div>
+
+ <% if @election.start_blockers.length > 0 %>
+ <p>Your vote cannot be started for the following reasons:</p>
+ <ul>
+ <% for reason in @election.start_blockers %>
+ <li><%= reason %></li>
+ <% end %>
+ </ul>
+ <% else %>
+ <p>Please check everything carefully on this page before starting this
+ vote. Once you begin the vote, you will <em>not</em> be able to add or
+ change candidates, modify the voting lists, or change the end
+ time.</p>
+
+ <p>When you begin the vote, the following will happen:</p>
+
+ <ul>
+ <li>The vote will be "frozen" so that further edits to the
+ candidate list and voting list cannot occur.</li>
+ <% if @election.authenticated? %>
+ <li>All voters will be emailed notifying them that the vote has
+ begun and of their unique login token.</li>
+ <% end %>
+ </ul>
+
+ <%= button_to 'Start Election!', :action => 'start_election', :id => @election.id %>
+ <% end %>
+
+<% elsif @election.embeddable? %>
+
+<div class="normal-header">
+ <span class="header">Embedding</span>
+ <span class="subheader"></span>
+</div>
+
+
+<p>To embed your election, copy and paste the following code into your
+homepage:</p>
+
+<pre><%= h("<iframe src='") + votepassword_url(:urlpassword => "open." + @election.id.to_s, :embed => "true") + h("' width='330px' height='#{(@election.candidates.length+2)*53}px'>" ) %>
+<%= h("</iframe>") %></pre>
+