]> projects.mako.cc - selectricity-live/blobdiff - app/views/election/_candidate_line_edit.rhtml
Fix midnight end times.
[selectricity-live] / app / views / election / _candidate_line_edit.rhtml
index ea20a4fd6e6ab718511c535f4f6700371cf510ff..0260a6a7176091ad10dbd2b540da10ea019b40d8 100644 (file)
@@ -1,24 +1,14 @@
-<% -%>
-<div id="cand<%= @current_candidate.id %>">
-<p><strong><%= @current_candidate.name %></strong>
-  (<%= link_to_remote "Delete",
+<div class="candidate_box" id="cand<%= @current_candidate.id %>">
+  <div class="candidate_box_name">
+  
+  <%=h @current_candidate.name %></div>
+  <div class="candidate_box_menu">
+  <%= link_to_remote "Delete",
                        :complete => "Element.remove('cand#{@current_candidate.id}')",
                        :url => { :action => :delete_candidate,
-                      :id => @current_candidate.id } %> |
-    <%= link_to "Edit", :action => 'edit_candidate', :id =>
-    @current_candidate.id %>)<br />
-    <blockquote>
-    <table><tr><td valign="top">
-      <% if @current_candidate.picture? %>
-      <img src="<%= url_for :action => 'candidate_picture',
-                            :id => @current_candidate.id %>"
-           align="top" />
-      <% end %>
-      </td>
-      <td valign="top">
-        <em>Description:</em><br />
-         <%= h(@current_candidate.description) %>
-    </td></tr></table>
-    </blockquote>
+                      :id => @election.id, :candidate => @current_candidate.id } %>
+   </div>
+   <div class="clear-div"></div>
+   <%= render :partial => 'candidate_box_info' %>
 </p>
 </div>

Benjamin Mako Hill || Want to submit a patch?