X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/dc7d60a0de460c72d292b43616eb97a8b34741c8..c933ff40da110253bc4c474d9c79c3a4ed98721d:/app/views/election/_candidates_form.rhtml diff --git a/app/views/election/_candidates_form.rhtml b/app/views/election/_candidates_form.rhtml new file mode 100644 index 0000000..814b38f --- /dev/null +++ b/app/views/election/_candidates_form.rhtml @@ -0,0 +1,11 @@ +

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

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

New candidate name: + <%= text_field_tag :newcandidate %> + + <%= submit_tag "Add" %> + <%= end_form_tag %>