X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/c504b0b0ca78ebe19c64c194dda677dae48ab6fb..5fd5cba6038d0ed97adb735cd24cc70c26335a3e:/app/views/quickvote/create.rhtml?ds=sidebyside diff --git a/app/views/quickvote/create.rhtml b/app/views/quickvote/create.rhtml index 57df1ed..eecb4fb 100644 --- a/app/views/quickvote/create.rhtml +++ b/app/views/quickvote/create.rhtml @@ -1,8 +1,9 @@ -
required; 5-12 characters; only letters and numbers; no spaces
+required; 5-12 characters; only letters and numbers; no spaces
<%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %>
- + -required; one line summary on the first line
+
required; free-form
-<%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %>
<%= submit_tag "Create Quickvote" -%>
+ <% fields_for 'quickvote', @quickvote do |quickform| %> -<% end %> + + + +<%= quickform.select('election_method', + %w(ssd condorcet plurality approval borda) ) %>
+ + +<%= quickform.date_select(:enddate, :start_year => Time.now.year) %>
+ +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 %> + +<%= submit_tag "Create Quickvote" -%>
+ +<% end %>