]> projects.mako.cc - selectricity/blobdiff - app/views/voter/full_vote.rhtml
merged changed in from devel to activate voting in full elections
[selectricity] / app / views / voter / full_vote.rhtml
index e6ccb26d16f8e55a04cc7d7bc601150a5ebb07ab..9d4f1d0675042eae322e577a5421c015e07f2941 100644 (file)
@@ -1,13 +1,41 @@
-<% %>
+<div id="title-header">
+  <span class="header">Vote</span>
+  <span class="subheader"><%= @voter.election.name %></span>
+</div>
 
 
-<p><strong>Election:</strong> <%= @voter.election.name %></p>
-<p><strong>Voter:</strong> <%= @voter.email %></p>
 <p><strong>Description:</strong></p>
 <p><strong>Description:</strong></p>
-<blockquote><%= @voter.election.description %></blockquote>
+<p><%= @voter.election.description %></p>
 
 
-<%= render :partial => 'vote' %>
+<div class="normal-header">
+  <span class="header">Current Voter</span>
+  <span class="subheader"></span>
+</div>
 
 
-<%= render :partial => 'sortable_vote' %>
+<p><strong><%= @voter.email %></strong></p>
 
 
-<%= button_to "Submit Vote", :action => 'review', :id => @voter.password %>
+<div class="normal-header">
+  <span class="header">Instructions</span>
+  <span class="subheader"></span>
+</div>
 
 
+<p>Drag and drop the items on <strong>list in the left column</strong>
+until they are in order from most preferred at the top to least
+preferred at the bottom. When you are done, press confirm to record your
+vote.</p>
+
+<div class="normal-header">
+  <span class="header">Candidate List</span>
+  <span class="subheader"></span>
+</div>
+
+<% @voter.election.candidates.each do |candidate| %>
+  <% @current_candidate = candidate %>
+
+  <div id="cand<%= @current_candidate.id %>">
+  <h3><%=h @current_candidate.name -%></h3>
+      <blockquote>
+      <%=h (@current_candidate.description) %>
+      </blockquote>
+  </div>
+    <% end %>
+</ul>

Benjamin Mako Hill || Want to submit a patch?