<tbody>
<% @objects.each do |object| %>
- <tr>
+ <tr data-object-uuid="<%= object.uuid %>">
<% object.attributes_for_display.each do |attr, attrvalue| %>
<% next if attr_blacklist.index(" "+attr) %>
<td class="arv-object-<%= object.class.to_s %> arv-attr-<%= attr %>">
<% end %>
<td>
<% if object.editable? %>
- <%= link_to({action: 'destroy', id: object.uuid}, method: :delete, data: {confirm: "You are about to delete #{controller.model_class} #{object.uuid}.\n\nAre you sure?"}) do %>
+ <%= link_to({action: 'destroy', id: object.uuid}, method: :delete, remote: true, data: {confirm: "You are about to delete #{controller.model_class} #{object.uuid}.\n\nAre you sure?"}) do %>
<i class="icon-trash"></i>
- <!-- <%= object.inspect %> -->
<% end %>
<% end %>
</td>
dependencies
</th><th>
created
+ </th><th>
</th>
</tr>
</thead>
<% @objects.sort_by { |ob| ob.created_at }.reverse.each do |ob| %>
- <tr>
+ <tr data-object-uuid="<%= ob.uuid %>">
<td>
<%= check_box_tag 'uuids[]', ob.uuid, false %>
</td><td>
</small>
</td><td>
<%= ob.created_at %>
+ </td><td>
+ <% if ob.editable? %>
+ <%= link_to({action: 'destroy', id: ob.uuid}, method: :delete, remote: true, data: {confirm: "You are about to delete #{controller.model_class} #{ob.uuid}.\n\nAre you sure?"}) do %>
+ <i class="icon-trash"></i>
+ <% end %>
+ <% end %>
</td>
</tr>