X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/c65b1e11059c5cf510b54c785d4a246215058f70..3062c2d0a2b51fdf3c6b1f3bbd35d524020890a7:/app/views/election/_overview_form.rhtml diff --git a/app/views/election/_overview_form.rhtml b/app/views/election/_overview_form.rhtml index d5d7b6c..a36e817 100644 --- a/app/views/election/_overview_form.rhtml +++ b/app/views/election/_overview_form.rhtml @@ -1,23 +1,42 @@ <%= error_messages_for 'election' %> -


-<%= text_field 'election', 'name', :size => 60 %>

+


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


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

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

-

Election End Date
+


All elections end at 23:59.
-<%= date_select :election, :enddate %>

+<%= datetime_select :election, :enddate, {:discard_hour=>true, :discard_minute=>true} %>

+ +


+<% 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, :verifiable%>

+ +

+<%= check_box :election, :early_results%>

+ +

+<%= check_box :election, :embeddable %>

+ +

+Warning: This will let users vote multiple times +from the same computer! +<%= check_box :election, :kiosk%>