d1018cf0a1da36563edf27d2f5fedf53b13bc06b
[selectricity-live] / app / views / quickvote / index.rhtml
1 <div id="title-header">
2         <span class="header">Quickvote</span>
3         <span class="subheader"><%=h @voter.election.description.capitalize %></span>
4 </div>
5
6 <div class="clear-div"></div>
7
8 <div class="main-content">
9
10 <% if @voter.voted? %>
11
12   <p>You have already voted. You can:</p>
13   
14   <ul>
15     <li><%= link_to "Change your vote.", quickaction_url( :ident => @voter.election.name, :action => 'change' ) %></li>
16
17     <li><%= link_to "View election results.", quickaction_url( :ident => @voter.election.name, :action => 'results' ) %></li>
18   </ul>
19 <% else %>
20
21 <p>Drag and drop the items on the following list until they are in order
22 from <em>most preferred at the top</em> to <em>least preferred at the
23 bottom</em>. When you are done, press confirm to record your vote.</p>
24
25 <%= render :partial => 'voter/sortable_vote' %>
26
27 <%= button_to "Confirm Vote", quickaction_url( :action => 'confirm', :ident => @voter.election.name)  %>
28
29
30 <% end %>
31 </div> <!-- end main-content -->

Benjamin Mako Hill || Want to submit a patch?