Sha256: 433c599c9377f9118c63364596861b0145d2e78c7e4c79e14c73a180c6e57b09

Contents?: true

Size: 335 Bytes

Versions: 6

Compression:

Stored size: 335 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

6 entries across 6 versions & 1 rubygems

Version Path
adminpanel-2.2.5 app/views/shared/_delete_icon_button.html.erb
adminpanel-2.2.4 app/views/shared/_delete_icon_button.html.erb
adminpanel-2.2.3 app/views/shared/_delete_icon_button.html.erb
adminpanel-2.2.2 app/views/shared/_delete_icon_button.html.erb
adminpanel-2.2.1 app/views/shared/_delete_icon_button.html.erb
adminpanel-2.2.0 app/views/shared/_delete_icon_button.html.erb