From 418a797e7ef0be8e7fafc1663defab5cd9456409 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 6 May 2022 05:20:29 -0700 Subject: [PATCH] Use partial for asset bulk edit Signed-off-by: snipe --- resources/views/categories/view.blade.php | 3 +++ resources/views/hardware/audit-due.blade.php | 8 +++---- resources/views/hardware/index.blade.php | 25 ++++---------------- resources/views/locations/view.blade.php | 5 ++++ resources/views/manufacturers/view.blade.php | 3 +++ 5 files changed, 18 insertions(+), 26 deletions(-) diff --git a/resources/views/categories/view.blade.php b/resources/views/categories/view.blade.php index 304ccbe92b..2cf0960c9b 100644 --- a/resources/views/categories/view.blade.php +++ b/resources/views/categories/view.blade.php @@ -28,6 +28,9 @@
+ @if ($category->category_type=='asset') + @include('partials.asset-bulk-actions') + @endif
- {{ Form::open([ - 'method' => 'POST', - 'route' => ['hardware/bulkedit'], - 'class' => 'form-inline', - 'id' => 'bulkForm']) }} + + @include('partials.asset-bulk-actions') +
diff --git a/resources/views/hardware/index.blade.php b/resources/views/hardware/index.blade.php index d4bd6fc88a..094c9fc1be 100755 --- a/resources/views/hardware/index.blade.php +++ b/resources/views/hardware/index.blade.php @@ -62,27 +62,10 @@
@if (Request::get('status')!='Deleted') - - - -
- {{ Form::open([ - 'method' => 'POST', - 'route' => ['hardware/bulkedit'], - 'class' => 'form-inline', - 'id' => 'bulkForm']) }} - - - - - - - {{ Form::close() }} -
+ + + + @include('partials.asset-bulk-actions') @endif diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.php index 90b100ee41..87eaf7c1ae 100644 --- a/resources/views/locations/view.blade.php +++ b/resources/views/locations/view.blade.php @@ -23,6 +23,7 @@
+
+ + + @include('partials.asset-bulk-actions') +
+ @include('partials.asset-bulk-actions') +
+