]> projects.mako.cc - selectricity/blob - app/views/election/_candidate_line_edit.rhtml
removed login information (a few people have found it)
[selectricity] / app / views / election / _candidate_line_edit.rhtml
1 <div class="candidate_box" id="cand<%= @current_candidate.id %>">
2   <div class="candidate_box_name"><%=h @current_candidate.name %></div>
3   <div class="candidate_box_menu">
4   <%= link_to_remote "Delete",
5                        :complete => "Element.remove('cand#{@current_candidate.id}')",
6                        :url => { :action => :delete_candidate,
7                        :id => @current_candidate.id } %>
8    </div>
9    <div class="clear-div"></div>
10
11    <div class="candidate_box_info">
12      <div class="candidate_box_picture">
13        <% if @current_candidate.picture? %>
14        <img src="<%= url_for :action => 'candidate_picture',
15                              :id => @current_candidate.id %>" />
16        <% end %>
17      </div>
18      <div class="candidate_box_description">
19        <% if @current_candidate.description.length > 0 %>
20           <%= h(@current_candidate.description) %>
21        <% else %>
22          <!-- no description -->
23        <% end %>
24      </div>
25      <div class="clear-div"></div>
26   </div>
27 </p>
28 </div>

Benjamin Mako Hill || Want to submit a patch?