Renamed "elections" controller to "election."
[selectricity] / app / views / election / edit_candidates.rhtml
diff --git a/app/views/election/edit_candidates.rhtml b/app/views/election/edit_candidates.rhtml
new file mode 100644 (file)
index 0000000..0c416d5
--- /dev/null
@@ -0,0 +1,14 @@
+<% @edit = true %>
+<h1><strong><%= @election.name %>:</strong> Edit Candidates</h1>
+
+<p>The following are valid options or candidates in this election:</p>
+
+<ul>
+<% @election.candidates.each do |candidate| %>
+   <% @candidate = candidate %>
+   <%= render :partial => 'candidate_line' %>
+<% end %>
+</ul>
+
+<%= render :partial => 'candidates_form' %>
+<%= button_to "Done!", :action => 'show', :id => @election %>

Benjamin Mako Hill || Want to submit a patch?