X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/c933ff40da110253bc4c474d9c79c3a4ed98721d..b1b6fe468411fa18118846fef18c993167fdb570:/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 4a76b81..eed92da 100644 --- a/app/views/election/_overview_form.rhtml +++ b/app/views/election/_overview_form.rhtml @@ -1,20 +1,33 @@ <%= error_messages_for 'election' %> -


-<%= text_field 'election', 'name' %>

+


+<%= text_field :election, :name, :size => 60 %>


-<%= text_area 'election', 'description' %>

+<%= text_area :election, :description, :rows => 5, :cols => 60 %>

+ -

Election/Voting End Date
-<%= datetime_select :election, :enddate %>

+


+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) %>

+ +