Changed properties to remove unecessary exectables.
[selectricity] / app / views / quickvote / create.rhtml
index 0a5d4aab1bb144f684403e6901adddda6c6b1dca..360a6900608f17d744064682bda738fe8763b41e 100644 (file)
@@ -1,25 +1,19 @@
 <% -%>
-<h1><%= @quickvote ? "Review and Confirm" : "Create QuickVote" %></h1>
+<h1>Create QuickVote</h1>
 
 <%= error_messages_for 'quickvote' %>
 
-<% if @quickvote %>
+<p><label for="quickvote_candidatelist">Choices</p>
 
-<p>Please review the data you've entered and confirm it. The candidates
-for the vote you've submitted include:</p>
-
-<ul>
-<% for candidate in @quickvote.raw_candidates %>
-  <li><%= candidate.capitalize %></li>
-<% end %>
-</ul>
-
-<% end %>
+<!-- the list of candidates -->
+<div id="candlist">
+<%= render :partial => 'candidate_list' %>
+</div>
 
 <%= form_tag :action => 'create' %>
 <!--[form:election]-->
 
-<p><label for="quickvote_name">Super-short name (for URL)<br />
+<p><label for="quickvote_name">One Word Description (for URL)<br />
 
 <em><font size="-1">required; 5-12 characters; only letters and numbers; no spaces</font></em></label><br/>
 
@@ -30,18 +24,7 @@ for the vote you've submitted include:</p>
 
 <%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %></p>
 
-<p><label for="quickvote_candidatelist">Choices/Candidates<em><br />
-<font size="-1">seperate choices with a ";"; at least two are required</font></em></label><br/>
-
-<%= text_area 'quickvote', 'candidatelist', :cols => 50, :rows => 2 %></p>
-
-<p><% if @quickvote -%>
-     <%= submit_tag "Confirm" -%>
-     <%= hidden_field :quickvote, :reviewed, :value => 1 %>
-   <% else %>
-     <%= submit_tag "Submit" -%>
-   <%- end -%>
-</p>
+<%= submit_tag "Create Quickvote" -%>
 
 <%= end_form_tag %>
 

Benjamin Mako Hill || Want to submit a patch?