]> projects.mako.cc - selectricity/blobdiff - app/views/election/_candidate_line_edit.rhtml
Major update of Selectricity to work with Rails 2.2.2 from 1.2!
[selectricity] / app / views / election / _candidate_line_edit.rhtml
index 61a9f6324cde461485f414975bd5f7cfdbd29783..bcb7cd92809eb2731549dd1cd584746bb9c4c0ec 100644 (file)
@@ -1,29 +1,14 @@
-<% -%>
-<div id="cand<%= @current_candidate.id %>">
-<p><strong><%=h @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,
                        :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" width="80px" />
-      <% end %>
-      </td>
-      <% if @current_candidate.description.length > 0 %>
-      <td valign="top">
-        <em>Description:</em><br />
-         <%= h(@current_candidate.description) %>
-      </td>
-      <% else %>
-      <td></td>
-      <% end %>
-    </tr></table>
-    </blockquote>
+                      :id => @current_candidate.id } %>
+   </div>
+   <div class="clear-div"></div>
+   <%= render :partial => 'candidate_box_info' %>
 </p>
 </div>
 </p>
 </div>

Benjamin Mako Hill || Want to submit a patch?