1 <p>Please enter candidates for <strong><%= @election.name %></strong>.</p>
3 <ul id="candidates_list">
4 <% @election.candidates.each do |candidate| %>
5 <% @candidate = candidate %>
6 <%= render :partial => 'candidate_line' %>
10 <%= form_remote_tag(:update => "candidates_list",
11 :url => { :action => :add_candidate, :id => @election.id },
12 :position => "top" ) %>
14 <p>New candidate name:
15 <%= text_field_tag :newcandidate %>
17 <%= submit_tag "Add" %>