Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Form::open and Form::close pt2 #16242

Merged
merged 4 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions resources/views/hardware/audit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
12 changes: 6 additions & 6 deletions resources/views/hardware/quickscan-checkin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
}
</style>



<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">
Expand Down Expand Up @@ -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>') !!}
</div>
</div>



</div> <!--/.box-body-->
<div class="box-footer">
Expand All @@ -78,7 +78,7 @@



{{Form::close()}}
</form>
</div> <!--/.col-md-6-->

<div class="col-md-6">
Expand All @@ -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>
</div>
<div class="box-body">

<table id="checkedin" class="table table-striped snipe-table">
<thead>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/hardware/quickscan.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -92,7 +92,7 @@



{{Form::close()}}
</form>
</div> <!--/.col-md-6-->

<div class="col-md-6">
Expand Down
19 changes: 10 additions & 9 deletions resources/views/hardware/requested.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,19 @@ class="table table-striped snipe-table"
</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
],
]) }}
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")
Expand Down
Loading