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