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) @can('delete', \App\Models\Location::class)
<div id="locationsBulkEditToolbar"> <div id="locationsBulkEditToolbar">
{{ Form::open([ <form
'method' => 'POST', method="POST"
'route' => ['locations.bulkdelete.show'], action="{{ route('locations.bulkdelete.show') }}"
'class' => 'form-inline', accept-charset="UTF-8"
'id' => 'locationsBulkForm']) }} class="form-inline"
id="locationsBulkForm"
>
@csrf
<div id="locations-toolbar"> <div id="locations-toolbar">
<label for="bulk_actions" class="sr-only">{{ trans('general.bulk_actions') }}</label> <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"> <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> <button class="btn btn-primary" id="bulkLocationsEditButton" disabled>{{ trans('button.go') }}</button>
</div> </div>
{{ Form::close() }} </form>
</div> </div>
@endcan @endcan