]> projects.mako.cc - selectricity/blobdiff - app/views/quickvote/_advanced.rhtml
Rename Selectricity API calls to more explicitly call itself quickvotes.
[selectricity] / app / views / quickvote / _advanced.rhtml
index 5699fd06b82a60fa41a35f8647fd1d4ac158032f..0255fbd6e27599285556adc61c5ce21d06f8dbc9 100644 (file)
@@ -2,10 +2,20 @@
 <% fields_for 'quickvote', quickvote do |quickform| %>
 
 <span><label for="quickvote_election_method">Election Method</span><br />
 <% fields_for 'quickvote', quickvote do |quickform| %>
 
 <span><label for="quickvote_election_method">Election Method</span><br />
-<%= quickform.select ('election_method', 
+<%= quickform.select('election_method', 
     %w(ssd condorcet plurality approval borda) ) %><br />
 
 <span><label for="quickvote_enddate">End Time</span><br />
     %w(ssd condorcet plurality approval borda) ) %><br />
 
 <span><label for="quickvote_enddate">End Time</span><br />
-<%= quickform.date_select(:enddate) %><br />
+<%= quickform.date_select(:enddate, :start_year => Time.now.year) %><br />
+
+</p>Want the results to be visible while the election is active?
+Yes <%= quickform.radio_button(:viewable, 1)%>
+No  <%= quickform.radio_button(:viewable, 0)%></p>
+
+<% if session[:user] %>
+<p>Would you like to be e-mailed when this QuickVote concludes?
+Yes <%= quickform.radio_button(:notices, 1)%>
+No  <%= quickform.radio_button(:notices, 0)%></p>
+<% end -%>
 
 <% end %>
 
 <% end %>

Benjamin Mako Hill || Want to submit a patch?