Major integration of Courtland's design into the QuickVotes.
[selectricity-live] / app / views / election / edit_candidates.rhtml
index b5f06ff31856dd1e0822ed12cf5388f353a7509f..756554dcd83950c18a42da63412e19ac75a16401 100644 (file)
@@ -1,7 +1,10 @@
-<h1><strong><%= @election.name %>:</strong> Edit Candidates</h1>
+<h2>Edit/Add Candidates</h2>
+
+<%= error_messages_for :candidate %>
 
 <% unless @election.candidates.empty? %>
   <p>The following are valid options or candidates in this election:</p>
+1;3A
 
   <% @election.candidates.each do |candidate| %>
     <% @current_candidate = candidate %>
 <% else %>
   <p>There are no candidates registered for this election.</p>
 <% end %>
+
 <p>Please enter new candidates below.</p>
-<%= render :partial => 'candidates_form' %>
-<%= button_to "Done!", :action => 'show', :id => @election %>
+
+<% form_tag( { :action => :add_candidate, :id => @election.id },
+              :multipart => true ) do %>
+<%= render :partial => 'candidate_form' %>
+<%= submit_tag "Add Candidate" %>
+<% end %>
+
+<%= button_to "Done!", :action => 'new_voters', :id => @election %>

Benjamin Mako Hill || Want to submit a patch?