-<p>Please enter candidates for <strong><%= @election.name %></strong>.</p>
+<% %>
- <%= form_remote_tag(:update => "candidate_list",
- :url => { :action => :add_candidate, :id => @election.id },
- :position => "top" ) %>
+<%= form_tag( { :action => :add_candidate, :id => @election.id },
+ :multipart => true ) %>
- <p>New candidate name:
- <%= text_field_tag :newcandidate %>
+<%= render_partial 'candidate_form' %>
- <%= submit_tag "Add" %>
- <%= end_form_tag %>
+<%= submit_tag "Add Candidate" %>
+<%= end_form_tag %>