Added a series of files so that elections can be created and edited and
[selectricity] / app / views / elections / edit_candidates.rhtml
index 2809d10345434b832f6adf43a0241594905b5f1d..0c416d5ee071cb757a11c9b3ff73e10869b23333 100644 (file)
@@ -1,5 +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?