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
|
@endcan
|
||||||
|
|
||||||
<div class="col-md-12 hidden-print" style="padding-top: 5px;">
|
<div class="col-md-12 hidden-print" style="padding-top: 5px;">
|
||||||
{{ Form::open([
|
<form
|
||||||
'method' => 'POST',
|
method="POST"
|
||||||
'route' => ['hardware/bulkedit'],
|
action="{{ route('hardware/bulkedit') }}"
|
||||||
'class' => 'form-inline',
|
accept-charset="UTF-8"
|
||||||
'target'=>'_blank',
|
class="form-inline"
|
||||||
'id' => 'bulkForm']) }}
|
target="_blank"
|
||||||
|
id="bulkForm"
|
||||||
|
>
|
||||||
|
@csrf
|
||||||
<input type="hidden" name="bulk_actions" value="labels" />
|
<input type="hidden" name="bulk_actions" value="labels" />
|
||||||
<input type="hidden" name="ids[{{$asset->id}}]" value="{{ $asset->id }}" />
|
<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').'"' : '') !!}>
|
<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" />
|
<x-icon type="assets" />
|
||||||
{{ trans_choice('button.generate_labels', 1) }}</button>
|
{{ trans_choice('button.generate_labels', 1) }}</button>
|
||||||
{{ Form::close() }}
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@can('delete', $asset)
|
@can('delete', $asset)
|
||||||
|
@ -1230,11 +1233,14 @@
|
||||||
@if ($asset->assignedAssets->count() > 0)
|
@if ($asset->assignedAssets->count() > 0)
|
||||||
|
|
||||||
|
|
||||||
{{ Form::open([
|
<form
|
||||||
'method' => 'POST',
|
method="POST"
|
||||||
'route' => ['hardware/bulkedit'],
|
action="{{ route('hardware/bulkedit') }}"
|
||||||
'class' => 'form-inline',
|
accept-charset="UTF-8"
|
||||||
'id' => 'bulkForm']) }}
|
class="form-inline"
|
||||||
|
id="bulkForm"
|
||||||
|
>
|
||||||
|
@csrf
|
||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
<label for="bulk_actions"><span class="sr-only">{{ trans('general.bulk_actions')}}</span></label>
|
<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">
|
<select name="bulk_actions" class="form-control select2" style="width: 150px;" aria-label="bulk_actions">
|
||||||
|
@ -1272,7 +1278,7 @@
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
{{ Form::close() }}
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@else
|
@else
|
||||||
|
|
Loading…
Reference in a new issue