Made a large number of mostly cosmetic fixes after a detailed
[selectricity-live] / app / views / quickvote / create.rhtml
1 <% -%>
2 <h1><%= @quickvote ? "Review and Confirm" : "Create QuickVote" %></h1>
3
4 <%= error_messages_for 'quickvote' %>
5
6 <% if @quickvote %>
7
8 <p>Please review the data you've entered and confirm it. The candidates
9 for the vote you've submitted include:</p>
10
11 <ul>
12 <% for candidate in @quickvote.raw_candidates %>
13   <li><%= candidate.capitalize %></li>
14 <% end %>
15 </ul>
16
17 <% end %>
18
19 <%= form_tag :action => 'create' %>
20 <!--[form:election]-->
21
22 <p><label for="quickvote_name">Super-short name (for URL)<br />
23
24 <em><font size="-1">required; 5-12 characters; only letters and numbers; no spaces</font></em></label><br/>
25
26 <%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12  %></p>
27
28 <p><label for="quickvote_description">Description<em><br />
29 <font size="-1">optional; one line summary on the first line</font></em></label><br/>
30
31 <%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %></p>
32
33 <p><label for="quickvote_candidatelist">Choices/Candidates<em><br />
34 <font size="-1">seperate choices with a ";"; at least two are required</font></em></label><br/>
35
36 <%= text_area 'quickvote', 'candidatelist', :cols => 50, :rows => 2 %></p>
37
38 <p><% if @quickvote -%>
39      <%= submit_tag "Confirm" -%>
40      <%= hidden_field :quickvote, :reviewed, :value => 1 %>
41    <% else %>
42      <%= submit_tag "Submit" -%>
43    <%- end -%>
44 </p>
45
46 <%= end_form_tag %>
47

Benjamin Mako Hill || Want to submit a patch?