added first stab at a kiosk mode
[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_verifiable">Enable voter verifiable
27 elections?</label>
28 <%= check_box :election, :verifiable%></p>
29
30 <p><label for="election_early_results">Should results be visible before end of election?</label>
31 <%= check_box :election, :early_results%></p>
32
33 <p><label for="election_embeddable">Enable embeddable elections?</label>
34 <%= check_box :election, :embeddable %></p>
35
36 <p><label for="election_kiosk">Enable kiosk mode?</label>
37 <em><strong>Warning:</strong> This will let users vote multiple times
38 from the same computer!</em>
39 <%= check_box :election, :kiosk%></p>
40
41 <!--[eoform:election]-->
42

Benjamin Mako Hill || Want to submit a patch?