X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/c933ff40da110253bc4c474d9c79c3a4ed98721d..3c50454cc2031d8996c099ef3a0ff510ffdc299c:/app/views/election/edit_candidates.rhtml?ds=sidebyside diff --git a/app/views/election/edit_candidates.rhtml b/app/views/election/edit_candidates.rhtml index 0c416d5..cc2c16a 100644 --- a/app/views/election/edit_candidates.rhtml +++ b/app/views/election/edit_candidates.rhtml @@ -1,14 +1,25 @@ -<% @edit = true %> -

<%= @election.name %>: Edit Candidates

+

Edit/Add Candidates

-

The following are valid options or candidates in this election:

+<%= error_messages_for :candidate %> - -<%= render :partial => 'candidates_form' %> +

Please enter new candidates below.

+ +<%= form_tag( { :action => :add_candidate, :id => @election.id }, + :multipart => true ) %> +<%= render :partial => 'candidate_form' %> +<%= submit_tag "Add Candidate" %> +<%= end_form_tag %> + <%= button_to "Done!", :action => 'show', :id => @election %>