X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/34fe63727a8929d7e9c529feee1f0c1e827acdfa..6a935d078f20d2b1b0d60f0a30c41a642d40758a:/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 d5d7b6c..8efa1b3 100644 --- a/app/views/election/_overview_form.rhtml +++ b/app/views/election/_overview_form.rhtml @@ -1,7 +1,7 @@ <%= error_messages_for 'election' %> -
+
<%= text_field 'election', 'name', :size => 60 %>
@@ -15,9 +15,13 @@
<%= datetime_select :election, :startdate %>
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) %>