diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index 06edd36b8..d3e076809 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -252,18 +252,21 @@ @endcan
- {{ Form::open([ - 'method' => 'POST', - 'route' => ['hardware/bulkedit'], - 'class' => 'form-inline', - 'target'=>'_blank', - 'id' => 'bulkForm']) }} +
+ @csrf - {{ Form::close() }} +
@can('delete', $asset) @@ -430,7 +433,7 @@ {{ $asset->assetstatus->name }} - + {!! $asset->assignedTo->present()->nameUrl() !!} @@ -1112,7 +1115,7 @@ {{ ($asset->userRequests) ? (int) $asset->userRequests->count() : '0' }} - + @@ -1230,11 +1233,14 @@ @if ($asset->assignedAssets->count() > 0) - {{ Form::open([ - 'method' => 'POST', - 'route' => ['hardware/bulkedit'], - 'class' => 'form-inline', - 'id' => 'bulkForm']) }} +
+ @csrf
- {{ Form::close() }} +
diff --git a/resources/views/models/index.blade.php b/resources/views/models/index.blade.php index cc2986cb8..6f3f5e78d 100755 --- a/resources/views/models/index.blade.php +++ b/resources/views/models/index.blade.php @@ -62,7 +62,6 @@ - {{ Form::close() }} diff --git a/resources/views/models/view.blade.php b/resources/views/models/view.blade.php index 15ce82d67..23cc40669 100755 --- a/resources/views/models/view.blade.php +++ b/resources/views/models/view.blade.php @@ -98,7 +98,6 @@ "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"] }'> - {{ Form::close() }} diff --git a/resources/views/partials/asset-bulk-actions.blade.php b/resources/views/partials/asset-bulk-actions.blade.php index 992fb52bb..dec9b0f29 100644 --- a/resources/views/partials/asset-bulk-actions.blade.php +++ b/resources/views/partials/asset-bulk-actions.blade.php @@ -1,10 +1,12 @@
-{{ Form::open([ - 'method' => 'POST', - 'route' => ['hardware/bulkedit'], - 'class' => 'form-inline', - 'id' => (isset($id_formname)) ? $id_formname : 'assetsBulkForm', - ]) }} +
+ @csrf {{-- The sort and order will only be used if the cookie is actually empty (like on first-use) --}} @@ -34,5 +36,5 @@ - {{ Form::close() }} +
diff --git a/resources/views/partials/locations-bulk-actions.blade.php b/resources/views/partials/locations-bulk-actions.blade.php index 228a68dfb..b19f4d329 100644 --- a/resources/views/partials/locations-bulk-actions.blade.php +++ b/resources/views/partials/locations-bulk-actions.blade.php @@ -1,11 +1,13 @@ @can('delete', \App\Models\Location::class)
- {{ Form::open([ - 'method' => 'POST', - 'route' => ['locations.bulkdelete.show'], - 'class' => 'form-inline', - 'id' => 'locationsBulkForm']) }} - +
+ @csrf