X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/fc0a6a8d7ea15bcdb27ebdd58721401c7045c6e0..ecc97ad58e95f219f023888958e101f9dec1f83f:/app/views/quickvote/create.rhtml?ds=sidebyside
diff --git a/app/views/quickvote/create.rhtml b/app/views/quickvote/create.rhtml
old mode 100755
new mode 100644
index 360a690..c05424e
--- a/app/views/quickvote/create.rhtml
+++ b/app/views/quickvote/create.rhtml
@@ -1,30 +1,68 @@
-<% -%>
-
+
<%= render :partial => 'candidate_list' %>
-<%= form_tag :action => 'create' %>
+<% form_tag(:action => 'create') do %>
+
+
+
required; 5-12 characters; only letters and numbers; no spaces
+
+
<%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %>
+
+
+
+
required; free-form
+
+<%= text_field 'quickvote', 'description', :size => 50 %>
+
+
+
+
-
+
-<%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %>
+
<%= quickform.select('election_method',
+ %w(ssd condorcet plurality approval borda) ) %>
-
+
+
<%= quickform.date_select(:enddate, :start_year => Time.now.year) %>
-<%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %>
+
+
+
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" -%>
+
<%= submit_tag "Create Quickvote" -%>
-<%= end_form_tag %>
+<% end %>