Migrate Form::open and Form::close in locations bulk actions partial

This commit is contained in:
Marcus Moore 2025-02-12 11:51:17 -08:00
parent 1dc579ce71
commit ac5a409cdf
No known key found for this signature in database

View file

@ -1,11 +1,13 @@
@can('delete', \App\Models\Location::class)
<div id="locationsBulkEditToolbar">
{{ Form::open([
'method' => 'POST',
'route' => ['locations.bulkdelete.show'],
'class' => 'form-inline',
'id' => 'locationsBulkForm']) }}
<form
method="POST"
action="{{ route('locations.bulkdelete.show') }}"
accept-charset="UTF-8"
class="form-inline"
id="locationsBulkForm"
>
@csrf
<div id="locations-toolbar">
<label for="bulk_actions" class="sr-only">{{ trans('general.bulk_actions') }}</label>
<select name="bulk_actions" class="form-control select2" style="width: 200px;" aria-label="bulk_actions">
@ -14,7 +16,7 @@
<button class="btn btn-primary" id="bulkLocationsEditButton" disabled>{{ trans('button.go') }}</button>
</div>
{{ Form::close() }}
</form>
</div>
@endcan