]> projects.mako.cc - selectricity-live/blob - app/views/election/_overview_form.rhtml
QuickVotes are now displayed in the control panel list - and you can click on
[selectricity-live] / 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 <p><label for="election_election_method">Enable Embeddable Elections?</label>
27 <%= check_box :election, :embeddable %></p>
28
29 <p><label for="election_election_method">Should results be visible before end of election?</label>
30 <%= check_box :election, :early_results%></p>
31 <!--[eoform:election]-->
32

Benjamin Mako Hill || Want to submit a patch?