mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge pull request #16242 from marcusmoore/chore/migrate-form-open-pt2
Replace Form::open and Form::close pt2
This commit is contained in:
commit
3d0770973a
|
@ -21,11 +21,7 @@
|
||||||
<div class="col-md-8 col-md-offset-2">
|
<div class="col-md-8 col-md-offset-2">
|
||||||
<div class="box box-default">
|
<div class="box box-default">
|
||||||
|
|
||||||
{{ Form::open([
|
<form method="POST" action="{{ route('asset.audit.store', $asset->id) }}" accept-charset="UTF-8" class="form-horizontal" enctype="multipart/form-data">
|
||||||
'method' => 'POST',
|
|
||||||
'route' => ['asset.audit.store', $asset->id],
|
|
||||||
'files' => true,
|
|
||||||
'class' => 'form-horizontal' ]) }}
|
|
||||||
|
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h2 class="box-title"> {{ trans('admin/hardware/form.tag') }} {{ $asset->asset_tag }}</h2>
|
<h2 class="box-title"> {{ trans('admin/hardware/form.tag') }} {{ $asset->asset_tag }}</h2>
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{ Form::open(['method' => 'POST', 'class' => 'form-horizontal', 'role' => 'form', 'id' => 'checkin-form' ]) }}
|
<form method="POST" action="{{ route('hardware/quickscancheckin') }}" accept-charset="UTF-8" class="form-horizontal" role="form" id="checkin-form">
|
||||||
<!-- left column -->
|
<!-- left column -->
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="box box-default">
|
<div class="box box-default">
|
||||||
|
@ -63,8 +63,8 @@
|
||||||
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div> <!--/.box-body-->
|
</div> <!--/.box-body-->
|
||||||
<div class="box-footer">
|
<div class="box-footer">
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{Form::close()}}
|
</form>
|
||||||
</div> <!--/.col-md-6-->
|
</div> <!--/.col-md-6-->
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
<h2 class="box-title"> {{ trans('general.quickscan_checkin_status') }} (<span id="checkin-counter">0</span> {{ trans('general.assets_checked_in_count') }}) </h2>
|
<h2 class="box-title"> {{ trans('general.quickscan_checkin_status') }} (<span id="checkin-counter">0</span> {{ trans('general.assets_checked_in_count') }}) </h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
|
||||||
<table id="checkedin" class="table table-striped snipe-table">
|
<table id="checkedin" class="table table-striped snipe-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{ Form::open(['method' => 'POST', 'class' => 'form-horizontal', 'role' => 'form', 'id' => 'audit-form' ]) }}
|
<form method="POST" accept-charset="UTF-8" class="form-horizontal" role="form" id="audit-form">
|
||||||
<!-- left column -->
|
<!-- left column -->
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="box box-default">
|
<div class="box box-default">
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{Form::close()}}
|
</form>
|
||||||
</div> <!--/.col-md-6-->
|
</div> <!--/.col-md-6-->
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
|
@ -100,18 +100,19 @@
|
||||||
</td>
|
</td>
|
||||||
<td>{{ App\Helpers\Helper::getFormattedDateObject($request->created_at, 'datetime', false) }}</td>
|
<td>{{ App\Helpers\Helper::getFormattedDateObject($request->created_at, 'datetime', false) }}</td>
|
||||||
<td>
|
<td>
|
||||||
{{ Form::open([
|
<form
|
||||||
'method' => 'POST',
|
method="POST"
|
||||||
'route' => [
|
action="{{ route('account/request-item', [
|
||||||
'account/request-item',
|
|
||||||
$request->itemType(),
|
$request->itemType(),
|
||||||
$request->requestable->id,
|
$request->requestable->id,
|
||||||
true,
|
true,
|
||||||
$request->requestingUser()->id
|
$request->requestingUser()->id
|
||||||
],
|
]) }}"
|
||||||
]) }}
|
accept-charset="UTF-8"
|
||||||
|
>
|
||||||
|
@csrf
|
||||||
<button class="btn btn-warning btn-sm" data-tooltip="true" title="{{ trans('general.cancel_request') }}">{{ trans('button.cancel') }}</button>
|
<button class="btn btn-warning btn-sm" data-tooltip="true" title="{{ trans('general.cancel_request') }}">{{ trans('button.cancel') }}</button>
|
||||||
{{ Form::close() }}
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@if ($request->itemType() == "asset")
|
@if ($request->itemType() == "asset")
|
||||||
|
|
Loading…
Reference in a new issue