Sha256: 6ce375a9ebf885621e103b5694f430ffe75d114902fc17687efd07fb458d1c08
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
<% if @model.has_route?(:destroy) && can?(:destroy, @model) %> <%= link_to( content_tag( :i, nil, class: 'fa fa-trash-o' ), [resource], title: I18n.t('action.delete', resource: resource.name), id: 'resource-delete', method: :delete, remote: true, data: { confirm: I18n.t('action.delete_confirmation', resource: resource.name) } ) %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
adminpanel-3.1.0 | app/views/adminpanel/icons/_delete.html.erb |
adminpanel-3.0.0 | app/views/adminpanel/icons/_delete.html.erb |