]> projects.mako.cc - selectricity-live/blob - app/views/quickvote/_advanced.rhtml
Merge jdong
[selectricity-live] / app / views / quickvote / _advanced.rhtml
1 <% fields_for 'quickvote', quickvote do |quickform| %>
2
3 <h3><label for="quickvote_election_method">Election Method</label></h3>
4
5 <p><%= quickform.select('election_method', 
6     %w(ssd condorcet plurality approval borda) ) %></p>
7
8 <h3><label for="quickvote_enddate">End Time</label></h3>
9 <p><%= quickform.date_select(:enddate, :start_year => Time.now.year) %></p>
10
11 <h3>Visibility</h3>
12
13 <p>Do you want the results to be visible while the election is active?</p>
14
15 <p>Yes <%= quickform.radio_button(:viewable, 1)%>
16 No  <%= quickform.radio_button(:viewable, 0)%></p>
17
18 <% if session[:user] %>
19 <h3>Notification</h3>
20
21 <p>Would you like to be e-mailed when this QuickVote concludes?</p>
22
23 <p>Yes <%= quickform.radio_button(:notices, 1)%>
24 No  <%= quickform.radio_button(:notices, 0)%></p>
25 <% end -%>
26
27 <% end %>

Benjamin Mako Hill || Want to submit a patch?