<% fields_for 'quickvote', quickvote do |quickform| %>

<%= quickform.select('election_method', %w(ssd condorcet plurality approval borda) ) %>

<%= quickform.date_select(:enddate, :start_year => Time.now.year) %>

Visibility

Do you want the results to be visible while the election is active?

Yes <%= quickform.radio_button(:viewable, 1)%> No <%= quickform.radio_button(:viewable, 0)%>

<% if session[:user] %>

Notification

Would you like to be e-mailed when this QuickVote concludes?

Yes <%= quickform.radio_button(:notices, 1)%> No <%= quickform.radio_button(:notices, 0)%>

<% end -%> <% end %>