Merge pull request #16245 from marcusmoore/chore/migrate-form-open-pt5

Replace Form::open and Form::close pt5
This commit is contained in:
snipe 2025-02-18 21:23:15 +00:00 committed by GitHub
commit 071b4d1e67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 26 additions and 22 deletions

View file

@ -21,7 +21,7 @@
</style>
{{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }}
<form method="POST" action="{{ route('settings.asset_tags.save') }}" accept-charset="UTF-8" autocomplete="off" class="form-horizontal" role="form">
<!-- CSRF Token -->
{{csrf_field()}}
@ -106,6 +106,6 @@
</div> <!-- /.col-md-8-->
</div> <!-- /.row-->
{{Form::close()}}
</form>
@stop

View file

@ -158,12 +158,8 @@
@if (config('app.lock_passwords')===true)
<p class="alert alert-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
@else
{{ Form::open([
'method' => 'POST',
'route' => 'settings.backups.upload',
'files' => true,
'class' => 'form-horizontal' ]) }}
<form method="POST" action="{{ route('settings.backups.upload') }}" accept-charset="UTF-8" class="form-horizontal" enctype="multipart/form-data">
@csrf
@ -194,7 +190,7 @@
</div>
{{ Form::close() }}
</form>
@endif
</div>
</div>

View file

@ -21,7 +21,17 @@
</style>
{{ Form::open(['method' => 'POST', 'files' => true, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form', 'id' => 'create-form' ]) }}
<form
method="POST"
action="{{ route('settings.branding.save') }}"
accept-charset="UTF-8"
autocomplete="off"
class="form-horizontal"
role="form"
id="create-form"
enctype="multipart/form-data"
novalidate="novalidate"
>
<!-- CSRF Token -->
{{csrf_field()}}
@ -340,7 +350,7 @@
</div> <!-- /.col-md-8-->
</div> <!-- /.row-->
{{Form::close()}}
</form>
@stop

View file

@ -366,7 +366,7 @@
</div>
</div>
<!-- Depreciation method -->
<div class="form-group {{ $errors->has('depreciation_method') ? 'error' : '' }}">
<div class="col-md-3">
@ -374,9 +374,9 @@
</div>
<div class="col-md-9">
{{ Form::select('depreciation_method', array(
'default' => 'Linear (default)',
'half_1' => 'Half-year convention, always applied',
'half_2' => 'Half-year convention, applied with condition',
'default' => 'Linear (default)',
'half_1' => 'Half-year convention, always applied',
'half_2' => 'Half-year convention, applied with condition',
), old('username_format', $setting->depreciation_method), ['class' =>'select2', 'style' => 'width: 80%']) }}
</div>
</div>
@ -423,7 +423,7 @@
</div> <!-- /.col-md-8-->
{{ Form::close() }}
</form>
@stop

View file

@ -16,7 +16,7 @@
{{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }}
<form method="POST" action="{{ route('settings.google.save') }}" accept-charset="UTF-8" autocomplete="off" class="form-horizontal" role="form">
<!-- CSRF Token -->
{{csrf_field()}}
@ -121,6 +121,6 @@
</div> <!-- /.col-md-8-->
</div> <!-- /.row-->
{{Form::close()}}
</form>
@stop

View file

@ -20,7 +20,7 @@
}
</style>
{{ Form::open(['id' => 'settingsForm', 'method' => 'POST', 'files' => false, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }}
<form method="POST" action="{{ route('settings.labels.save') }}" accept-charset="UTF-8" id="settingsForm" autocomplete="off" class="form-horizontal" role="form">
<!-- CSRF Token -->
{{csrf_field()}}
@ -348,8 +348,6 @@
}
</style>
{{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }}
<!-- CSRF Token -->
{{csrf_field()}}
@ -520,7 +518,7 @@
</div> <!-- /.col-md-8-->
</div> <!-- /.row-->
{{Form::close()}}
</form>
@stop