-<%= form_tag :action => 'create' %>
+<% form_tag(:action => 'create') do %>
+
+
+
+
+ <% fields_for 'quickvote', @quickvote do |quickform| %>
-
+
<%= quickform.select('election_method',
+ %w(ssd condorcet plurality approval borda) ) %>
-<%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %>
+
End Time
+
<%= quickform.date_select(:enddate, :start_year => Time.now.year) %>
-
Description
-required; one line summary on the first line
+
Visibility
-<%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %>
+
Do you want the results to be visible while the election is active?
-<%= submit_tag "Create Quickvote" -%>
+
Yes <%= quickform.radio_button(:viewable, 1)%>
+ No <%= quickform.radio_button(:viewable, 0)%>
-<%= end_form_tag %>
+ <% 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 %>
+
+