]> projects.mako.cc - selectricity-live/blob - app/views/election/_candidate_line_edit.rhtml
Add links to create new election/quick vote on the account summary screen.
[selectricity-live] / app / views / election / _candidate_line_edit.rhtml
1 <div class="candidate_box" id="cand<%= @current_candidate.id %>">
2   <div class="candidate_box_name">
3   
4   <%=h @current_candidate.name %></div>
5   <div class="candidate_box_menu">
6   <%= link_to_remote "Delete",
7                        :complete => "Element.remove('cand#{@current_candidate.id}')",
8                        :url => { :action => :delete_candidate,
9                        :id => @election.id, :candidate => @current_candidate.id } %>
10    </div>
11    <div class="clear-div"></div>
12    <%= render :partial => 'candidate_box_info' %>
13 </p>
14 </div>

Benjamin Mako Hill || Want to submit a patch?