A few major changes:
[selectricity-live] / app / views / election / show.rhtml
index f389059d72436e9539c391860d6e6f18b8674bfb..90c93eacad2082a19f0a50280667f31eb4e54083 100644 (file)
 
 <% unless @election.voters.empty? %>
   <%= render :partial => 'voter_list' %>
 
 <% unless @election.voters.empty? %>
   <%= render :partial => 'voter_list' %>
+  <%= link_to "Add or remove voters.", :action => 'edit_voters', :id => @election.id %></em></p>
 <% else %>
   <p><em>There are currently no voters registered for this election.
   <%= link_to "Add some!", :action => 'edit_voters', :id => @election.id %></em></p>
 <% end %>
 <% else %>
   <p><em>There are currently no voters registered for this election.
   <%= link_to "Add some!", :action => 'edit_voters', :id => @election.id %></em></p>
 <% end %>
+
+<h2>Start Election</h2>
+
+<% if @election.start_blockers.length > 0 %>
+  <p>Your election cannot be started for the following reasons:</p>
+  <ul>
+  <% for reason in @election.start_blockers %>
+  <li><%= reason %></li>
+  <% end %>
+  </ul>
+<% else %>
+<p>Please check eveything carefully on this page before starting this
+election. Once you begin the election, you will <em>not</em> be able to
+add or change candidates, modify the voting lists, or change the
+election end time.</p>
+
+<p>When you begin the election, the following will happen:</p>
+
+<ul>
+  <li>The election will be "frozen" so that further edits to the
+      candidate list and voting list cannot occur.</li>
+  <li>All voters will be emailed notifying them that the election has
+      begun and of their unique login token.</li>
+</ul>
+
+<%= button_to 'Start Election!', :action => 'start_election', :id => @election.id %>
+
+<% end %>

Benjamin Mako Hill || Want to submit a patch?