X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/4efa3e9bc47cc649205a399fde51ed7e61bef7f8..2ba40f97b78f529984ff26c7c7d61c91d213e7b0:/app/views/election/_candidates_form.rhtml diff --git a/app/views/election/_candidates_form.rhtml b/app/views/election/_candidates_form.rhtml index ca6e73e..4528923 100644 --- a/app/views/election/_candidates_form.rhtml +++ b/app/views/election/_candidates_form.rhtml @@ -1,15 +1,9 @@ <% %> -

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

-<%= 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 ) %> -

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

- -

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

+<%= render_partial 'candidate_form' %> <%= submit_tag "Add Candidate" %> <%= end_form_tag %>