Sha256: 577208d7ea50e44ec296457f0d648d2782837c8a59f4835533ea5a9f53380754

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

<% if @model.has_route?(:destroy) && can?(:destroy, @model) %>
  <%=
    link_to(
      content_tag(
        :i,
        nil,
        class: 'fa fa-trash-o'
      ),
      [resource],
      title: 'Eliminar',
      id: 'resource-delete',
      method: :delete,
      data: {
        confirm: "Eliminar #{resource.name}?"
      }
    )
  %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adminpanel-2.4.2 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.4.1 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.4.0 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.3.1 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.3.0 app/views/adminpanel/icons/_delete.html.erb