From 277618bf16a3fee912b2e8cbab695169ca15da31 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 8 May 2023 14:13:24 -0700 Subject: [PATCH] Added maxlenth to form fields Signed-off-by: snipe --- resources/views/partials/forms/edit/address.blade.php | 10 +++++----- resources/views/users/edit.blade.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/views/partials/forms/edit/address.blade.php b/resources/views/partials/forms/edit/address.blade.php index b33673381..c8bf73403 100644 --- a/resources/views/partials/forms/edit/address.blade.php +++ b/resources/views/partials/forms/edit/address.blade.php @@ -1,7 +1,7 @@
{{ Form::label('address', trans('general.address'), array('class' => 'col-md-3 control-label')) }}
- {{Form::text('address', old('address', $item->address), array('class' => 'form-control', 'aria-label'=>'address')) }} + {{Form::text('address', old('address', $item->address), array('class' => 'form-control', 'aria-label'=>'address', 'maxlength'=>'191')) }} {!! $errors->first('address', '') !!}
@@ -9,13 +9,13 @@
- {{Form::text('address2', old('address2', $item->address2), array('class' => 'form-control', 'aria-label'=>'address2')) }} + {{Form::text('address2', old('address2', $item->address2), array('class' => 'form-control', 'aria-label'=>'address2', 'maxlength'=>'191')) }} {!! $errors->first('address2', '') !!}
- {{ Form::label('city', trans('general.city'), array('class' => 'col-md-3 control-label')) }} + {{ Form::label('city', trans('general.city'), array('class' => 'col-md-3 control-label', 'maxlength'=>'191')) }}
{{Form::text('city', old('city', $item->city), array('class' => 'form-control', 'aria-label'=>'city')) }} {!! $errors->first('city', '') !!} @@ -23,7 +23,7 @@
- {{ Form::label('state', trans('general.state'), array('class' => 'col-md-3 control-label')) }} + {{ Form::label('state', trans('general.state'), array('class' => 'col-md-3 control-label', 'maxlength'=>'191')) }}
{{Form::text('state', old('state', $item->state), array('class' => 'form-control', 'aria-label'=>'state')) }} {!! $errors->first('state', '') !!} @@ -40,7 +40,7 @@
- {{ Form::label('zip', trans('general.zip'), array('class' => 'col-md-3 control-label')) }} + {{ Form::label('zip', trans('general.zip'), array('class' => 'col-md-3 control-label', 'maxlength'=>'10')) }}
{{Form::text('zip', old('zip', $item->zip), array('class' => 'form-control')) }} {!! $errors->first('zip', '') !!} diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index 34005e9bc..a8b5ddf05 100755 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -441,7 +441,7 @@
- + {!! $errors->first('state', '') !!}