ca6e73ed91e9478c3dfb147a07fe2e83c1809884
[selectricity] / app / views / election / _candidates_form.rhtml
1 <% %>
2 <p>Please enter candidates for <strong><%= @election.name %></strong>.</p>
3
4 <%= form_remote_tag(:update => "candidate_list",
5                     :url => { :action => :add_candidate, :id => @election.id },
6                     :position => "bottom" ) %>
7
8 <p>New candidate name:<br />
9 <%= text_field :newcandidate, :name %></p>
10  
11 <p>Candidate description/platform (optional):<br />
12 <%= text_area :newcandidate, :description %></p>
13
14 <%= submit_tag "Add Candidate" %>
15 <%= end_form_tag %>

Benjamin Mako Hill || Want to submit a patch?