X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/8f23a174c70223831055e1498b50c3ba260858fe..f8ebf16c9444c239928d730d1f84275b90d733e6:/app/views/election/_overview_form.rhtml?ds=inline diff --git a/app/views/election/_overview_form.rhtml b/app/views/election/_overview_form.rhtml index 7d575e9..8d1861d 100644 --- a/app/views/election/_overview_form.rhtml +++ b/app/views/election/_overview_form.rhtml @@ -2,22 +2,31 @@
-<%= text_field 'election', 'name', :size => 60 %>
-<%= text_area 'election', 'description', :rows => 5, :cols => 60 %>
Election End Date
+
All elections end at 23:59.
<%= date_select :election, :enddate %>
+<% type_hash = {}; ELECTION_TYPES.each {|k,v| type_hash[v] = k} %>
+<%= select_tag 'election[election_method]', options_for_select(type_hash, @election.election_method) %>
+<%= check_box :election, :embeddable %>
+ ++<%= check_box :election, :early_results%>