Variety of small changes (mostly to properties) plus a few "in the
[selectricity] / app / views / election / edit_candidates.rhtml
old mode 100644 (file)
new mode 100755 (executable)
index b5f06ff..cc2c16a
@@ -1,4 +1,6 @@
-<h1><strong><%= @election.name %>:</strong> Edit Candidates</h1>
+<h1>Edit/Add Candidates</h1>
+
+<%= error_messages_for :candidate %>
 
 <% unless @election.candidates.empty? %>
   <p>The following are valid options or candidates in this election:</p>
 <% else %>
   <p>There are no candidates registered for this election.</p>
 <% end %>
+
 <p>Please enter new candidates below.</p>
-<%= render :partial => 'candidates_form' %>
+
+<%= form_tag( { :action => :add_candidate, :id => @election.id },
+              :multipart => true ) %>
+<%= render :partial => 'candidate_form' %>
+<%= submit_tag "Add Candidate" %>
+<%= end_form_tag %>
+
 <%= button_to "Done!", :action => 'show', :id => @election %>

Benjamin Mako Hill || Want to submit a patch?