X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/905cf65f6b3e8acc894c268c3bf729e7b0c76292..c5d48f6ea92e43f07182d20ebe693692b4330437:/app/views/quickvote/create.rhtml
diff --git a/app/views/quickvote/create.rhtml b/app/views/quickvote/create.rhtml
index 7ccb644..37e62c6 100644
--- a/app/views/quickvote/create.rhtml
+++ b/app/views/quickvote/create.rhtml
@@ -1,7 +1,10 @@
-<% -%>
-
@@ -12,31 +15,58 @@
<% form_tag(:action => 'create') do %>
+
-
+
required; 5-12 characters; only letters and numbers; no spaces
-<%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %>
+
<%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %>
-
+
-<%= 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 %>
-<%= render :partial => 'advanced', :locals => {:quickvote => @quickvote} %>
-
-
+
+
-<%= 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 %>
+
+
+