From d0d4159088e4452ff18dcfb80e3746475caedc88 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 15 Oct 2024 12:42:09 +0100 Subject: [PATCH 1/2] Fixed typo Signed-off-by: snipe --- app/Models/Location.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Location.php b/app/Models/Location.php index e6c310979..014db3053 100755 --- a/app/Models/Location.php +++ b/app/Models/Location.php @@ -42,7 +42,7 @@ class Location extends SnipeModel ]; /** - * Whether the model should inject it's identifier to the unique + * Whether the model should inject its identifier to the unique * validation rules before attempting validation. If this property * is not set in the model it will default to true. * From e9225ff3ea6952f83ec0cbda2749f0756d6f1de7 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 15 Oct 2024 12:43:10 +0100 Subject: [PATCH 2/2] Switch to regular HTML for input form field Signed-off-by: snipe --- resources/views/locations/edit.blade.php | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/resources/views/locations/edit.blade.php b/resources/views/locations/edit.blade.php index 55d638a9f..4b4e655a5 100755 --- a/resources/views/locations/edit.blade.php +++ b/resources/views/locations/edit.blade.php @@ -25,9 +25,15 @@ -
- {{ Form::text('currency', old('currency', $item->currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;', 'aria-label'=>'currency', 'required' => (Helper::checkIfRequired($item, 'currency')) ? true : '')) }} - {!! $errors->first('currency', '') !!} +
+ + @error('currency') + + + {{ $message }} + + @enderror +
@@ -40,8 +46,13 @@ {{ trans('admin/locations/table.ldap_ou') }}
- {{ Form::text('ldap_ou', old('ldap_ou', $item->ldap_ou), array('class' => 'form-control', 'required' => (Helper::checkIfRequired($item, 'ldap_ou')) ? true : '')) }} - {!! $errors->first('ldap_ou', '') !!} + + @error('ldap_ou') + + + {{ $message }} + + @enderror
@endif