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="box box-default">
|
||||
|
||||
{{ Form::open([
|
||||
'method' => 'POST',
|
||||
'route' => ['asset.audit.store', $asset->id],
|
||||
'files' => true,
|
||||
'class' => 'form-horizontal' ]) }}
|
||||
<form method="POST" action="{{ route('asset.audit.store', $asset->id) }}" accept-charset="UTF-8" class="form-horizontal" enctype="multipart/form-data">
|
||||
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title"> {{ trans('admin/hardware/form.tag') }} {{ $asset->asset_tag }}</h2>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
<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 -->
|
||||
<div class="col-md-6">
|
||||
<div class="box box-default">
|
||||
|
@ -78,7 +78,7 @@
|
|||
|
||||
|
||||
|
||||
{{Form::close()}}
|
||||
</form>
|
||||
</div> <!--/.col-md-6-->
|
||||
|
||||
<div class="col-md-6">
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
<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 -->
|
||||
<div class="col-md-6">
|
||||
<div class="box box-default">
|
||||
|
@ -92,7 +92,7 @@
|
|||
|
||||
|
||||
|
||||
{{Form::close()}}
|
||||
</form>
|
||||
</div> <!--/.col-md-6-->
|
||||
|
||||
<div class="col-md-6">
|
||||
|
|
|
@ -100,18 +100,19 @@
|
|||
</td>
|
||||
<td>{{ App\Helpers\Helper::getFormattedDateObject($request->created_at, 'datetime', false) }}</td>
|
||||
<td>
|
||||
{{ Form::open([
|
||||
'method' => 'POST',
|
||||
'route' => [
|
||||
'account/request-item',
|
||||
<form
|
||||
method="POST"
|
||||
action="{{ route('account/request-item', [
|
||||
$request->itemType(),
|
||||
$request->requestable->id,
|
||||
true,
|
||||
$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>
|
||||
{{ Form::close() }}
|
||||
</form>
|
||||
</td>
|
||||
<td>
|
||||
@if ($request->itemType() == "asset")
|
||||
|
|
Loading…
Reference in a new issue