X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/fc0a6a8d7ea15bcdb27ebdd58721401c7045c6e0..da8a3c5c6efcad4e4a5424a09c0479f7ee52a9ec:/app/views/election/_overview_form.rhtml diff --git a/app/views/election/_overview_form.rhtml b/app/views/election/_overview_form.rhtml old mode 100755 new mode 100644 index d5d7b6c..be90de6 --- a/app/views/election/_overview_form.rhtml +++ b/app/views/election/_overview_form.rhtml @@ -1,23 +1,33 @@ <%= error_messages_for 'election' %> -
-<%= text_field 'election', 'name', :size => 60 %>
+<%= 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%>
+