]> projects.mako.cc - selectricity/blobdiff - app/views/elections/_candidates_form.rhtml
Added a series of files so that elections can be created and edited and
[selectricity] / app / views / elections / _candidates_form.rhtml
index d739dbf62fdac6210092306c0523dcb06751b5a5..814b38f29945295cb04af224505cb8f779410dc3 100644 (file)
@@ -1,13 +1,6 @@
 <p>Please enter candidates for <strong><%= @election.name %></strong>.</p>
 
-  <ul id="candidates_list">
-     <% @election.candidates.each do |candidate| %>
-       <% @candidate = candidate %>
-       <%= render :partial => 'candidate_line' %>
-     <% end %>
-  </ul>
-
-  <%= form_remote_tag(:update => "candidates_list",
+  <%= form_remote_tag(:update => "candidate_list",
                       :url => { :action => :add_candidate, :id => @election.id },
                       :position => "top" ) %>
 

Benjamin Mako Hill || Want to submit a patch?