1 <%= error_messages_for 'election' %>
4 <p><label for="election_name">Title</label><br/>
5 <%= text_field :election, :name, :size => 60 %></p>
7 <p><label for="election_description">Description</label><br/>
8 <%= text_area :election, :description, :rows => 5, :cols => 60 %></p>
11 <p><label for="election_anonymous">Anonymous Vote</label>
12 <%= check_box :election, :anonymous, {}, 1, 0 %></p>
14 <p>Election/Voting Start Date<br />
15 <%= datetime_select :election, :startdate %></p>
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>
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>
26 <!-- <p><label for="election_election_method">Enable Embeddable Elections?</label>
27 <%= check_box :election, :embeddable %></p>
29 <p><label for="election_election_method">Should results be visible before end of election?</label>
30 <%= check_box :election, :early_results%></p>
32 <!--[eoform:election]-->