]> projects.mako.cc - selectricity/blobdiff - app/views/election/_overview_form.rhtml
removed login information (a few people have found it)
[selectricity] / app / views / election / _overview_form.rhtml
index 4a76b81269ca3d4715c0eba797832c31a3c3bca2..8efa1b3769651142c5455f41c7516be1c8618d81 100644 (file)
@@ -1,20 +1,27 @@
 <%= error_messages_for 'election' %>
 
 <!--[form:election]-->
-<p><label for="election_name">Name</label><br/>
-<%= text_field 'election', 'name'  %></p>
+<p><label for="election_name">Title</label><br/>
+<%= text_field 'election', 'name', :size => 60 %></p>
 
 <p><label for="election_description">Description</label><br/>
-<%= text_area 'election', 'description'  %></p>
+<%= text_area 'election', 'description', :rows => 5, :cols => 60 %></p>
 
+<!--
 <p><label for="election_anonymous">Anonymous Vote</label>
 <%= check_box 'election', 'anonymous', {}, 1, 0  %></p>
 
 <p>Election/Voting Start Date<br />
 <%= datetime_select :election, :startdate %></p>
+--> 
 
-<p>Election/Voting End Date<br />
-<%= datetime_select :election, :enddate %></p>
+<p><label for="election_enddate">Election End Date</label><br />
+<font size="-1"><em>All elections end at 23:59.</em></font><br />
+<%= date_select :election, :enddate %></p>
+
+<p><label for="election_election_method">Election Method</label><br />
+<% type_hash = {}; ELECTION_TYPES.each {|k,v| type_hash[v] = k} %>
+<%= select_tag 'election[election_method]', options_for_select(type_hash, @election.election_method) %></p>
 
 <!--[eoform:election]-->
 

Benjamin Mako Hill || Want to submit a patch?