]> projects.mako.cc - selectricity/blob - app/views/quickvote/_advanced.rhtml
Fix a bug where quickvote displays name cant be blank twice. validators are inherited...
[selectricity] / app / views / quickvote / _advanced.rhtml
1 <% fields_for 'quickvote', quickvote do |quickform| %>
2
3 <p><label for="quickvote_election_method">Election Method</label></p>
4
5 <p><%= quickform.select('election_method', 
6     %w(ssd condorcet plurality approval borda) ) %></p>
7
8 <p><label for="quickvote_enddate">End Time</label></p>
9 <p><%= quickform.date_select(:enddate, :start_year => Time.now.year) %></p>
10
11 <p>Visibility</p>
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 <p>Notification</p>
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?