Merge pull request #16244 from marcusmoore/chore/migrate-form-open-pt4
Replace Form::open and Form::close pt4
This commit is contained in:
commit
580a4c476e
6 changed files with 23 additions and 20 deletions
|
@ -3,12 +3,14 @@
|
||||||
|
|
||||||
@if (request('status')!='deleted')
|
@if (request('status')!='deleted')
|
||||||
|
|
||||||
{{ Form::open([
|
<form
|
||||||
'method' => 'POST',
|
method="POST"
|
||||||
'route' => ['users/bulkedit'],
|
action="{{ route('users/bulkedit') }}"
|
||||||
'class' => 'form-inline',
|
accept-charset="UTF-8"
|
||||||
'id' => 'usersBulkForm']) }}
|
class="form-inline"
|
||||||
|
id="usersBulkForm"
|
||||||
|
>
|
||||||
|
@csrf
|
||||||
|
|
||||||
<div id="users-toolbar" style="width:100% !important;">
|
<div id="users-toolbar" style="width:100% !important;">
|
||||||
<label for="bulk_actions" class="sr-only">{{ trans('general.bulk_actions') }}</label>
|
<label for="bulk_actions" class="sr-only">{{ trans('general.bulk_actions') }}</label>
|
||||||
|
@ -28,7 +30,7 @@
|
||||||
</select>
|
</select>
|
||||||
<button class="btn btn-primary" id="bulkUserEditButton" disabled>{{ trans('button.go') }}</button>
|
<button class="btn btn-primary" id="bulkUserEditButton" disabled>{{ trans('button.go') }}</button>
|
||||||
</div>
|
</div>
|
||||||
{{ Form::close() }}
|
</form>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,13 +7,13 @@
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
@section('header_right')
|
@section('header_right')
|
||||||
{{ Form::open(['method' => 'post', 'class' => 'form-horizontal']) }}
|
<form method="POST" action="{{ route('reports.activity.post') }}" accept-charset="UTF-8" class="form-horizontal">
|
||||||
{{csrf_field()}}
|
{{csrf_field()}}
|
||||||
<button type="submit" class="btn btn-default">
|
<button type="submit" class="btn btn-default">
|
||||||
<x-icon type="download" />
|
<x-icon type="download" />
|
||||||
{{ trans('general.download_all') }}
|
{{ trans('general.download_all') }}
|
||||||
</button>
|
</button>
|
||||||
{{ Form::close() }}
|
</form>
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
{{-- Page content --}}
|
{{-- Page content --}}
|
||||||
|
|
|
@ -35,12 +35,13 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8 col-md-offset-1">
|
<div class="col-md-8 col-md-offset-1">
|
||||||
|
|
||||||
{{ Form::open([
|
<form
|
||||||
'method' => 'post',
|
method="POST"
|
||||||
'class' => 'form-horizontal',
|
action="{{ request()->routeIs('report-templates.edit') ? route('report-templates.update', $template) : '/reports/custom' }}"
|
||||||
'id' => 'custom-report-form',
|
accept-charset="UTF-8"
|
||||||
'url' => request()->routeIs('report-templates.edit') ? route('report-templates.update', $template) : '/reports/custom',
|
class="form-horizontal"
|
||||||
]) }}
|
id="custom-report-form"
|
||||||
|
>
|
||||||
{{csrf_field()}}
|
{{csrf_field()}}
|
||||||
|
|
||||||
<!-- Horizontal Form -->
|
<!-- Horizontal Form -->
|
||||||
|
@ -631,7 +632,7 @@
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div> <!--/.box.box-default-->
|
</div> <!--/.box.box-default-->
|
||||||
{{ Form::close() }}
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Saved Reports right column -->
|
<!-- Saved Reports right column -->
|
||||||
|
|
|
@ -19,10 +19,10 @@
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group mr-2" role="group">
|
<div class="btn-group mr-2" role="group">
|
||||||
{{ Form::open(['method' => 'post', 'class' => 'form-horizontal']) }}
|
<form method="POST" action="{{ route('reports/export/unaccepted_assets') }}" accept-charset="UTF-8" class="form-horizontal">
|
||||||
{{csrf_field()}}
|
{{csrf_field()}}
|
||||||
<button type="submit" class="btn btn-default"><i class="fa fa-download icon-white" aria-hidden="true"></i> {{ trans('general.download_all') }}</button>
|
<button type="submit" class="btn btn-default"><i class="fa fa-download icon-white" aria-hidden="true"></i> {{ trans('general.download_all') }}</button>
|
||||||
{{ Form::close() }}
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@stop
|
@stop
|
||||||
|
|
|
@ -176,7 +176,7 @@
|
||||||
</div> <!-- /.col-md-8-->
|
</div> <!-- /.col-md-8-->
|
||||||
</div> <!-- /.row-->
|
</div> <!-- /.row-->
|
||||||
|
|
||||||
{{Form::close()}}
|
</form>
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
|
|
@ -390,7 +390,7 @@ Route::group(['middleware' => ['auth']], function () {
|
||||||
[ReportsController::class, 'getActivityReport']
|
[ReportsController::class, 'getActivityReport']
|
||||||
)->name('reports.activity');
|
)->name('reports.activity');
|
||||||
|
|
||||||
Route::post('reports/activity', [ReportsController::class, 'postActivityReport']);
|
Route::post('reports/activity', [ReportsController::class, 'postActivityReport'])->name('reports.activity.post');
|
||||||
|
|
||||||
Route::get(
|
Route::get(
|
||||||
'reports/unaccepted_assets/{deleted?}',
|
'reports/unaccepted_assets/{deleted?}',
|
||||||
|
|
Loading…
Add table
Reference in a new issue