]> projects.mako.cc - selectricity/blob - app/views/election/_overview_form.rhtml
8efa1b3769651142c5455f41c7516be1c8618d81
[selectricity] / app / views / election / _overview_form.rhtml
1 <%= error_messages_for 'election' %>
2
3 <!--[form:election]-->
4 <p><label for="election_name">Title</label><br/>
5 <%= text_field 'election', 'name', :size => 60 %></p>
6
7 <p><label for="election_description">Description</label><br/>
8 <%= text_area 'election', 'description', :rows => 5, :cols => 60 %></p>
9
10 <!--
11 <p><label for="election_anonymous">Anonymous Vote</label>
12 <%= check_box 'election', 'anonymous', {}, 1, 0  %></p>
13
14 <p>Election/Voting Start Date<br />
15 <%= datetime_select :election, :startdate %></p>
16 --> 
17
18 <p><label for="election_enddate">Election End Date</label><br />
19 <font size="-1"><em>All elections end at 23:59.</em></font><br />
20 <%= date_select :election, :enddate %></p>
21
22 <p><label for="election_election_method">Election Method</label><br />
23 <% type_hash = {}; ELECTION_TYPES.each {|k,v| type_hash[v] = k} %>
24 <%= select_tag 'election[election_method]', options_for_select(type_hash, @election.election_method) %></p>
25
26 <!--[eoform:election]-->
27

Benjamin Mako Hill || Want to submit a patch?