diff --git a/app/Models/Location.php b/app/Models/Location.php index e6c310979b..014db3053e 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. * diff --git a/resources/views/locations/edit.blade.php b/resources/views/locations/edit.blade.php index 55d638a9f5..4b4e655a52 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