2 <span class="header">Quickvote</span>
3 <span class="subheader">Create New QuickVote</span>
4 <div style="clear:both;"></div>
7 <p><label for="quickvote_candidate_names">Choices</p>
9 <!-- the list of candidates -->
10 <div id="candidate_names">
11 <%= render :partial => 'candidate_list' %>
14 <% form_tag(:action => 'create') do %>
15 <!--[form:election]-->
16 <p><label for="quickvote_name">One Word Description (for URL)</label></p>
18 <p>required; 5-12 characters; only letters and numbers; no spaces</p>
20 <p><%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %></p>
22 <p><label for="quickvote_description">Description</label></p>
24 <p><font size="-1">required; free-form</font></em><br/>
26 <%= text_field 'quickvote', 'description', :size => 50 %></p>
28 <div id="advanced" style="display: none">
29 <div class="plain-header">
30 <span class="header">Advanced Options</span>
31 <span class="subheader"></span>
33 <div class="clear-div"></div>
35 <% fields_for 'quickvote', @quickvote do |quickform| %>
37 <p><label for="quickvote_election_method">Election Method</label></p>
39 <p><%= quickform.select('election_method',
40 %w(ssd condorcet plurality approval borda) ) %></p>
42 <p><label for="quickvote_enddate">End Time</label></p>
43 <p><%= quickform.date_select(:enddate, :start_year => Time.now.year) %></p>
45 <p><label for="quickvote_visibility">Visibility</label></p>
47 <p>Do you want the results to be visible while the election is active?</p>
49 <p>Yes <%= quickform.radio_button(:viewable, 1)%>
50 No <%= quickform.radio_button(:viewable, 0)%></p>
52 <% if session[:user] %>
55 <p>Would you like to be e-mailed when this QuickVote concludes?</p>
57 <p>Yes <%= quickform.radio_button(:notices, 1)%>
58 No <%= quickform.radio_button(:notices, 0)%></p>
66 <p><%= submit_tag "Create Quickvote" -%></p>