%= error_messages_for 'election' %>
<%= text_field 'election', 'name', :size => 60 %>
<%= text_area 'election', 'description', :rows => 5, :cols => 60 %>
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) %>