mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Migrate Form::open and Form::close on asset view
This commit is contained in:
parent
c08cfb9b73
commit
93a67847ba
|
@ -252,18 +252,21 @@
|
|||
@endcan
|
||||
|
||||
<div class="col-md-12 hidden-print" style="padding-top: 5px;">
|
||||
{{ Form::open([
|
||||
'method' => 'POST',
|
||||
'route' => ['hardware/bulkedit'],
|
||||
'class' => 'form-inline',
|
||||
'target'=>'_blank',
|
||||
'id' => 'bulkForm']) }}
|
||||
<form
|
||||
method="POST"
|
||||
action="{{ route('hardware/bulkedit') }}"
|
||||
accept-charset="UTF-8"
|
||||
class="form-inline"
|
||||
target="_blank"
|
||||
id="bulkForm"
|
||||
>
|
||||
@csrf
|
||||
<input type="hidden" name="bulk_actions" value="labels" />
|
||||
<input type="hidden" name="ids[{{$asset->id}}]" value="{{ $asset->id }}" />
|
||||
<button class="btn btn-block btn-social btn-sm btn-default" id="bulkEdit"{{ (!$asset->model ? ' disabled' : '') }}{!! (!$asset->model ? ' data-tooltip="true" title="'.trans('admin/hardware/general.model_invalid').'"' : '') !!}>
|
||||
<x-icon type="assets" />
|
||||
{{ trans_choice('button.generate_labels', 1) }}</button>
|
||||
{{ Form::close() }}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@can('delete', $asset)
|
||||
|
@ -1230,11 +1233,14 @@
|
|||
@if ($asset->assignedAssets->count() > 0)
|
||||
|
||||
|
||||
{{ Form::open([
|
||||
'method' => 'POST',
|
||||
'route' => ['hardware/bulkedit'],
|
||||
'class' => 'form-inline',
|
||||
'id' => 'bulkForm']) }}
|
||||
<form
|
||||
method="POST"
|
||||
action="{{ route('hardware/bulkedit') }}"
|
||||
accept-charset="UTF-8"
|
||||
class="form-inline"
|
||||
id="bulkForm"
|
||||
>
|
||||
@csrf
|
||||
<div id="toolbar">
|
||||
<label for="bulk_actions"><span class="sr-only">{{ trans('general.bulk_actions')}}</span></label>
|
||||
<select name="bulk_actions" class="form-control select2" style="width: 150px;" aria-label="bulk_actions">
|
||||
|
@ -1272,7 +1278,7 @@
|
|||
</table>
|
||||
|
||||
|
||||
{{ Form::close() }}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@else
|
||||
|
|
Loading…
Reference in a new issue