Add attributes to delete asset file button (#4336)

This adds attributes to the delete file buttons on the View Asset page.
The attributes will fill the confirmation modal that prompts users
before deleting. They also activate a tooltip on the button.
This commit is contained in:
Geoff Young 2018-01-03 20:25:50 -05:00 committed by snipe
parent f786e07179
commit 0b3d2b46e0

View file

@ -712,7 +712,7 @@
</td>
<td>
@can('update', \App\Models\Asset::class)
<a class="btn delete-asset btn-danger btn-sm" href="{{ route('delete/assetfile', [$asset->id, $file->id]) }}"><i class="fa fa-trash icon-white"></i></a>
<a class="btn delete-asset btn-danger btn-sm" href="{{ route('delete/assetfile', [$asset->id, $file->id]) }}" data-tooltip="true" data-title="Delete" data-content="Are you sure you wish to delete {{$file->filename}}"><i class="fa fa-trash icon-white"></i></a>
@endcan
</td>
</tr>