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