2 <h1><%= @quickvote ? "Review and Confirm" : "Create QuickVote" %></h1>
4 <%= error_messages_for 'quickvote' %>
8 <p>Please review the data you've entered and confirm it. The candidates
9 for the vote you've submitted include:</p>
12 <% for candidate in @quickvote.raw_candidates %>
13 <li><%= candidate.capitalize %></li>
19 <%= form_tag :action => 'create' %>
20 <!--[form:election]-->
22 <p><label for="quickvote_name">Super-short name (for URL)<br />
24 <em><font size="-1">required; 5-12 characters; only letters and numbers; no spaces</font></em></label><br/>
26 <%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %></p>
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/>
31 <%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %></p>
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/>
36 <%= text_area 'quickvote', 'candidatelist', :cols => 50, :rows => 2 %></p>
38 <p><% if @quickvote -%>
39 <%= submit_tag "Confirm" -%>
40 <%= hidden_field :quickvote, :reviewed, :value => 1 %>
42 <%= submit_tag "Submit" -%>