From 95767c46ac832cc26b3a5eb2c321d8ab14ed03d0 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 18 Apr 2023 04:37:13 -0700 Subject: [PATCH] Fixed delete modal Signed-off-by: snipe --- resources/views/licenses/view.blade.php | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/resources/views/licenses/view.blade.php b/resources/views/licenses/view.blade.php index 97265349e6..68403ff120 100755 --- a/resources/views/licenses/view.blade.php +++ b/resources/views/licenses/view.blade.php @@ -579,7 +579,7 @@ @can('checkin', $license) @if (($license->seats - $license->availCount()->count()) > 0 ) - + {{ trans('admin/licenses/general.bulk.checkin_all.button') }} @else @@ -594,10 +594,14 @@ @can('delete', $license) @if ($license->availCount()->count() == $license->seats) - {{ trans('general.delete') }} + @else - {{ trans('general.delete') }} + + {{ trans('general.delete') }} + @endif @endcan @@ -626,6 +630,8 @@ ]) @endcan + + @can('update', \App\Models\License::class) @include ('modals.upload-file', ['item_type' => 'license', 'item_id' => $license->id]) @endcan @@ -634,5 +640,15 @@ @section('moar_scripts') + @include ('partials.bootstrap-table') @stop