From 05d74f7a92c0afaa00e1a520983b90545c7f79d9 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 28 Sep 2024 15:42:03 +0100 Subject: [PATCH] Covered setup pages too Signed-off-by: snipe --- resources/views/setup/user.blade.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/resources/views/setup/user.blade.php b/resources/views/setup/user.blade.php index 5398e3cc61..bd3698ff1f 100644 --- a/resources/views/setup/user.blade.php +++ b/resources/views/setup/user.blade.php @@ -21,7 +21,7 @@ - {{ 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', '') !!} @@ -90,14 +90,14 @@
{{ 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)) }} {{ trans('general.email_domain_help') }} {!! $errors->first('email_domain', '') !!}
-
+
{{ Form::label('email_format', trans('general.email_format')) }} {!! Form::username_format('email_format', old('email_format', 'filastname'), 'select2') !!} {!! $errors->first('email_format', '') !!} @@ -107,32 +107,32 @@
-
- {{ Form::label('first_name', trans('general.first_name')) }} - {{ Form::text('first_name', old('first_name'), array('class' => 'form-control','placeholder' => 'Jane')) }} +
+ {{ Form::label('first_name', trans('general.first_name'), 'required') }} + {{ Form::text('first_name', old('first_name'), array('class' => 'form-control','placeholder' => 'Jane', 'required' => true)) }} {!! $errors->first('first_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', '') !!}
-
+
{{ 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', '') !!}
{{ 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', '') !!}
@@ -141,14 +141,14 @@
{{ 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', '') !!}
{{ 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', '') !!}