<% %>

Please enter candidates for <%= @election.name %>.

<%= form_remote_tag(:update => "candidate_list", :url => { :action => :add_candidate, :id => @election.id }, :position => "bottom" ) %>

New candidate name:
<%= text_field :newcandidate, :name %>

Candidate description/platform (optional):
<%= text_area :newcandidate, :description %>

<%= submit_tag "Add Candidate" %> <%= end_form_tag %>