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

This commit is contained in:
Marcus Moore 2025-02-12 11:49:13 -08:00
parent 37282fffff
commit 1dc579ce71
No known key found for this signature in database

View file

@ -1,10 +1,12 @@
<div id="{{ (isset($id_divname)) ? $id_divname : 'assetsBulkEditToolbar' }}" style="min-width:400px"> <div id="{{ (isset($id_divname)) ? $id_divname : 'assetsBulkEditToolbar' }}" style="min-width:400px">
{{ Form::open([ <form
'method' => 'POST', method="POST"
'route' => ['hardware/bulkedit'], action="{{ route('hardware/bulkedit') }}"
'class' => 'form-inline', accept-charset="UTF-8"
'id' => (isset($id_formname)) ? $id_formname : 'assetsBulkForm', 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) --}} {{-- The sort and order will only be used if the cookie is actually empty (like on first-use) --}}
<input name="sort" type="hidden" value="assets.id"> <input name="sort" type="hidden" value="assets.id">
@ -34,5 +36,5 @@
</select> </select>
<button class="btn btn-primary" id="{{ (isset($id_button)) ? $id_button : 'bulkAssetEditButton' }}" disabled>{{ trans('button.go') }}</button> <button class="btn btn-primary" id="{{ (isset($id_button)) ? $id_button : 'bulkAssetEditButton' }}" disabled>{{ trans('button.go') }}</button>
{{ Form::close() }} </form>
</div> </div>