X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/3f5f14d1c73ff2614b0012d027e7360583e1a70e..b436d3fd0e673b4f5bcc01f0e7cce39ff0e40f82:/app/views/quickvote/create.rhtml diff --git a/app/views/quickvote/create.rhtml b/app/views/quickvote/create.rhtml index b1b6004..eecb4fb 100644 --- a/app/views/quickvote/create.rhtml +++ b/app/views/quickvote/create.rhtml @@ -1,34 +1,8 @@ -
- Title - Subtitle -
-
- -
- Title - Subtitle -
-
- -
+
Quickvote - -
+ Create New QuickVote
-<%= error_messages_for 'quickvote' %> - -Header -Subheader -
- -Header - -
- -Header -
-

@@ -38,32 +12,61 @@ <% form_tag(:action => 'create') do %> -

-

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
- -<%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %>

+

required; free-form
-<%= check_box('options', 'advanced', - :onclick => 'Element.toggle($("advanced")); false;' )%>Advanced +<%= text_field 'quickvote', 'description', :size => 50 %>

-
+
+ Advanced Options + +
+
-

<%= 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 %>