More print fixes

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-21 13:02:21 +01:00
parent 01c4fe6113
commit 912bbf0e32

View file

@ -1399,7 +1399,7 @@
</td> </td>
<td> <td>
@if (($file->filename) && (Storage::exists('private_uploads/assets/'.$file->filename))) @if (($file->filename) && (Storage::exists('private_uploads/assets/'.$file->filename)))
<a href="{{ route('show/assetfile', [$asset->id, $file->id, 'download'=>'true']) }}" class="btn btn-sm btn-default"> <a href="{{ route('show/assetfile', [$asset->id, $file->id, 'download'=>'true']) }}" class="btn btn-sm btn-default hidden-print">
<x-icon type="download" /> <x-icon type="download" />
</a> </a>
@ -1415,7 +1415,7 @@
</td> </td>
<td> <td>
@can('update', \App\Models\Asset::class) @can('update', \App\Models\Asset::class)
<a class="btn delete-asset btn-sm btn-danger btn-sm" href="{{ route('delete/assetfile', [$asset->id, $file->id]) }}" data-tooltip="true" data-title="Delete" data-content="{{ trans('general.delete_confirm', ['item' => $file->filename]) }}"> <a class="btn delete-asset btn-sm btn-danger btn-sm hidden-print" href="{{ route('delete/assetfile', [$asset->id, $file->id]) }}" data-tooltip="true" data-title="Delete" data-content="{{ trans('general.delete_confirm', ['item' => $file->filename]) }}">
<x-icon type="delete" /> <x-icon type="delete" />
</a> </a>
@endcan @endcan
@ -1503,11 +1503,11 @@
</td> </td>
<td> <td>
@if (($file->filename) && (Storage::exists('private_uploads/assetmodels/'.$file->filename))) @if (($file->filename) && (Storage::exists('private_uploads/assetmodels/'.$file->filename)))
<a href="{{ route('show/modelfile', [$asset->model->id, $file->id]) }}" class="btn btn-sm btn-default"> <a href="{{ route('show/modelfile', [$asset->model->id, $file->id]) }}" class="btn btn-sm btn-default hidden-print">
<x-icon type="download" /> <x-icon type="download" />
</a> </a>
<a href="{{ route('show/modelfile', [$asset->model->id, $file->id, 'inline'=>'true']) }}" class="btn btn-sm btn-default" target="_blank"> <a href="{{ route('show/modelfile', [$asset->model->id, $file->id, 'inline'=>'true']) }}" class="btn btn-sm btn-default hidden-print" target="_blank">
<x-icon type="external-link" /> <x-icon type="external-link" />
</a> </a>
@ -1520,8 +1520,8 @@
</td> </td>
<td> <td>
@can('update', \App\Models\AssetModel::class) @can('update', \App\Models\AssetModel::class)
<a class="btn delete-asset btn-sm btn-danger btn-sm" href="{{ route('delete/modelfile', [$asset->model->id, $file->id]) }}" data-tooltip="true" data-title="Delete" data-content="{{ trans('general.delete_confirm', ['item' => $file->filename]) }}"> <a class="btn delete-asset btn-sm btn-danger btn-sm hidden-print" href="{{ route('delete/modelfile', [$asset->model->id, $file->id]) }}" data-tooltip="true" data-title="Delete" data-content="{{ trans('general.delete_confirm', ['item' => $file->filename]) }}">
<x-icon type="delete" /></i> <x-icon type="delete" class="hidden-print"/></i>
</a> </a>
@endcan @endcan
</td> </td>