]> projects.mako.cc - selectricity-live/blob - app/views/quickvote/create.rhtml
Change Recent Quickvotes to My Recent QuickVotes
[selectricity-live] / app / views / quickvote / create.rhtml
1 <div id="page-title">
2         <span class="header">Quickvote</span>
3         <span class="subheader">Create New QuickVote</span>
4         <div style="clear:both;"></div>
5 </div>
6
7 <div class="main-content">
8
9 <p><label for="quickvote_candidate_names">Choices</p>
10
11 <!-- the list of candidates -->
12 <div id="candidate_names">
13 <%= render :partial => 'candidate_list' %>
14 </div>
15
16 <% form_tag(:action => 'create') do %>
17 <!--[form:election]-->
18 <p><label for="quickvote_name">One Word Description (for URL)</label></p>
19
20 <p>required; 5-12 characters; only letters and numbers; no spaces</p>
21
22 <p><%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12  %></p>
23
24 <p><label for="quickvote_description">Description</label></p>
25
26 <p><font size="-1">required; free-form</font></em><br/>
27
28 <%= text_field 'quickvote', 'description', :size => 50 %></p>
29
30 <div id="advanced" style="display: none">
31   <div class="plain-header">
32   <span class="header">Advanced Options</span>
33   <span class="subheader"></span>
34   </div>
35   <div class="clear-div"></div>
36
37   <% fields_for 'quickvote', @quickvote do |quickform| %>
38
39     <p><label for="quickvote_election_method">Election Method</label></p>
40
41     <p><%= quickform.select('election_method', 
42         %w(ssd condorcet plurality approval borda) ) %></p>
43
44     <p><label for="quickvote_enddate">End Time</label></p>
45     <p><%= quickform.date_select(:enddate, :start_year => Time.now.year) %></p>
46
47     <p><label for="quickvote_visibility">Visibility</label></p>
48
49     <p>Do you want the results to be visible while the election is active?</p>
50
51     <p>Yes <%= quickform.radio_button(:viewable, 1)%>
52        No  <%= quickform.radio_button(:viewable, 0)%></p>
53
54     <% if session[:user] %>
55       <p>Notification</p>
56
57       <p>Would you like to be e-mailed when this QuickVote concludes?</p>
58
59       <p>Yes <%= quickform.radio_button(:notices, 1)%>
60          No  <%= quickform.radio_button(:notices, 0)%></p>
61     <% end -%>
62
63   <% end %>
64
65 </div>
66 <br />
67
68 <p><%= submit_tag "Create Quickvote" -%></p>
69
70 <% end %>
71
72 </div>

Benjamin Mako Hill || Want to submit a patch?