app/views/rademade_admin/abstract/related.html.erb in rademade_admin-0.1.0 vs app/views/rademade_admin/abstract/related.html.erb in rademade_admin-0.1.1

- old
+ new

@@ -19,25 +19,32 @@ :list_fields => related_list_fields } has_position = @sortable_service.has_position? %><tbody class="table-content" data-position='false'><% @items.each do |item| + unlink_url = admin_unlink_uri(@item, params[:relation], { + :related_id => item.id + }) %><tr class="table-line" <% if has_position %> id='<%= item.position %>'<% end %> data-id='<%= item.id %>'><% related_list_fields.each do |field| %><td><%= display_item_value(item, field) %></td><% end %><td class="table-item"> - <span class="table-actions"><%= - button_to t('rademade_admin.unlink'), admin_unlink_uri(@item, params[:relation], { - :related_id => item.id - }), { - :method => :delete, - :form => { :class => 'delete-item-form' } - } %></span> + <span class="table-actions"><% + concat render 'rademade_admin/_blocks/button/edit', { + :item => item + } + %><div class="glyphicon glyphicon-remove fl-l"><% + concat button_to t('rademade_admin.unlink'), unlink_url, { + :method => :delete, + :form => { :class => 'delete-item-form' } + } + %></div> + </span> </td> </tr><% end %></tbody> </table><% \ No newline at end of file