78addaa0c6a6407a85b9745f4c080a7950135212
[selectricity-live] / app / views / site / create_quickvote.rhtml
1 <% -%>
2 <h1>Create QuickVote</h1>
3
4 <%= error_messages_for 'quickvote' %>
5
6 <% if @quickvote %>
7 <p>Please review the data you've entered and confirm. The candidates for
8 the election submitted include:</p>
9
10 <ul>
11 <% for candidate in @quickvote.raw_candidates %>
12   <li><%= candidate %></li>
13 <% end %>
14 </ul>
15
16 <% end %>
17
18 <%= form_tag :action => 'create_quickvote' %>
19 <!--[form:election]-->
20
21 <p><label for="quickvote_name">Vote Name<br />
22
23 <em><font size="-1">Required; 5-12 characters; only letters and numbers; no spaces</font></em></label><br/>
24
25 <%= text_field 'quickvote', 'name'  %></p>
26
27 <p><label for="quickvote_description">Description <em><font
28 size="-1">Optional</font></em></label><br/>
29
30 <%= text_area 'quickvote', 'description', :rows => 2 %></p>
31
32 <p><label for="quickvote_candidatelist">Choices/Candidates<em><br />
33 <font size="-1">Seperate choices with a ";". At least two are required.</font></em></label><br/>
34
35 <%= text_area 'quickvote', 'candidatelist', :rows => 3 %></p>
36
37 <p><% if @quickvote -%>
38      <%= submit_tag "Confirm" -%>
39      <%= hidden_field :quickvote, :reviewed, :value => 1 %>
40    <% else %>
41      <%= submit_tag "Create QuickVote" -%>
42    <%- end -%>
43 </p>
44
45 <%= end_form_tag %>
46

Benjamin Mako Hill || Want to submit a patch?