Covered setup pages too

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-09-28 15:42:03 +01:00
parent dc85588d7f
commit 05d74f7a92

View file

@ -21,7 +21,7 @@
<label for="site_name"> <label for="site_name">
{{ trans('general.site_name') }} {{ trans('general.site_name') }}
</label> </label>
{{ Form::text('site_name', old('site_name'), array('class' => 'form-control','placeholder' => 'Snipe-IT Asset Management')) }} {{ Form::text('site_name', old('site_name'), array('class' => 'form-control','placeholder' => 'Snipe-IT Asset Management', 'required' => true)) }}
{!! $errors->first('site_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('site_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div> </div>
@ -90,14 +90,14 @@
<div class="row"> <div class="row">
<div class="form-group col-lg-6 required {{ $errors->has('email_domain') ? 'error' : '' }}"> <div class="form-group col-lg-6 required {{ $errors->has('email_domain') ? 'error' : '' }}">
{{ Form::label('email_domain', trans('general.email_domain')) }} {{ Form::label('email_domain', trans('general.email_domain')) }}
{{ Form::text('email_domain', old('email_domain'), array('class' => 'form-control','placeholder' => 'example.com')) }} {{ Form::text('email_domain', old('email_domain'), array('class' => 'form-control','placeholder' => 'example.com','required' => true)) }}
<span class="help-block">{{ trans('general.email_domain_help') }}</span> <span class="help-block">{{ trans('general.email_domain_help') }}</span>
{!! $errors->first('email_domain', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('email_domain', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div> </div>
<!-- email format --> <!-- email format -->
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'email_format')) ? ' required' : '' }} {{ $errors->has('email_format') ? 'error' : '' }}"> <div class="form-group col-lg-6 {{ $errors->has('email_format') ? 'error' : '' }}">
{{ Form::label('email_format', trans('general.email_format')) }} {{ Form::label('email_format', trans('general.email_format')) }}
{!! Form::username_format('email_format', old('email_format', 'filastname'), 'select2') !!} {!! Form::username_format('email_format', old('email_format', 'filastname'), 'select2') !!}
{!! $errors->first('email_format', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('email_format', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
@ -107,32 +107,32 @@
<!-- Name --> <!-- Name -->
<div class="row"> <div class="row">
<!-- first name --> <!-- first name -->
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'first_name')) ? ' required' : '' }} {{ $errors->has('first_name') ? 'error' : '' }}"> <div class="form-group col-lg-6">
{{ Form::label('first_name', trans('general.first_name')) }} {{ Form::label('first_name', trans('general.first_name'), 'required') }}
{{ Form::text('first_name', old('first_name'), array('class' => 'form-control','placeholder' => 'Jane')) }} {{ Form::text('first_name', old('first_name'), array('class' => 'form-control','placeholder' => 'Jane', 'required' => true)) }}
{!! $errors->first('first_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('first_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div> </div>
<!-- last name --> <!-- last name -->
<div class="form-group col-lg-6 required {{ $errors->has('last_name') ? 'error' : '' }}"> <div class="form-group col-lg-6 required {{ $errors->has('last_name') ? 'error' : '' }}">
{{ Form::label('last_name', trans('general.last_name')) }} {{ Form::label('last_name', trans('general.last_name')) }}
{{ Form::text('last_name', old('last_name'), array('class' => 'form-control','placeholder' => 'Smith')) }} {{ Form::text('last_name', old('last_name'), array('class' => 'form-control','placeholder' => 'Smith', 'required' => true) }}
{!! $errors->first('last_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('last_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<!-- email--> <!-- email-->
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'email')) ? ' required' : '' }} {{ $errors->has('email') ? 'error' : '' }}"> <div class="form-group col-lg-6{{ $errors->has('email') ? 'error' : '' }}">
{{ Form::label('email', trans('admin/users/table.email')) }} {{ Form::label('email', trans('admin/users/table.email')) }}
{{ Form::email('email', config('mail.from.address'), array('class' => 'form-control','placeholder' => 'you@example.com')) }} {{ Form::email('email', config('mail.from.address'), array('class' => 'form-control','placeholder' => 'you@example.com', 'required' => true)) }}
{!! $errors->first('email', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('email', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div> </div>
<!-- username --> <!-- username -->
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'username')) ? ' required' : '' }} {{ $errors->has('username') ? 'error' : '' }}"> <div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'username')) ? ' required' : '' }} {{ $errors->has('username') ? 'error' : '' }}">
{{ Form::label('username', trans('admin/users/table.username')) }} {{ Form::label('username', trans('admin/users/table.username')) }}
{{ Form::text('username', old('username'), array('class' => 'form-control','placeholder' => 'jsmith')) }} {{ Form::text('username', old('username'), array('class' => 'form-control','placeholder' => 'jsmith', 'required' => true)) }}
{!! $errors->first('username', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('username', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div> </div>
</div> </div>
@ -141,14 +141,14 @@
<!-- password --> <!-- password -->
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password') ? 'error' : '' }}"> <div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password') ? 'error' : '' }}">
{{ Form::label('password', trans('admin/users/table.password')) }} {{ Form::label('password', trans('admin/users/table.password')) }}
{{ Form::password('password', array('class' => 'form-control')) }} {{ Form::password('password', array('class' => 'form-control','required' => true)) }}
{!! $errors->first('password', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('password', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div> </div>
<!-- password confirm --> <!-- password confirm -->
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password_confirm') ? 'error' : '' }}"> <div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password_confirm') ? 'error' : '' }}">
{{ Form::label('password_confirmation', trans('admin/users/table.password_confirm')) }} {{ Form::label('password_confirmation', trans('admin/users/table.password_confirm')) }}
{{ Form::password('password_confirmation', array('class' => 'form-control')) }} {{ Form::password('password_confirmation', array('class' => 'form-control','required' => true)) }}
{!! $errors->first('password_confirmation', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('password_confirmation', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div> </div>
</div> </div>