X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/6d422530319d9fbacc37c271e22778d07414f0da..4efa3e9bc47cc649205a399fde51ed7e61bef7f8:/app/views/election/_candidates_form.rhtml diff --git a/app/views/election/_candidates_form.rhtml b/app/views/election/_candidates_form.rhtml index 814b38f..ca6e73e 100644 --- a/app/views/election/_candidates_form.rhtml +++ b/app/views/election/_candidates_form.rhtml @@ -1,11 +1,15 @@ +<% %>

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

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

New candidate name: - <%= text_field_tag :newcandidate %> +

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

+ +

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

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