From d873f4870407518a9c61630de89a54709817beff Mon Sep 17 00:00:00 2001 From: Craig Smith Date: Fri, 6 May 2022 13:51:24 +1200 Subject: [PATCH] fix: password reveal populate --- resources/views/password.blade.php | 112 ++++++++++++++++++----------- 1 file changed, 71 insertions(+), 41 deletions(-) diff --git a/resources/views/password.blade.php b/resources/views/password.blade.php index 13da0be..aa02e20 100644 --- a/resources/views/password.blade.php +++ b/resources/views/password.blade.php @@ -1,57 +1,87 @@ @php $datalistOptions = $getDatalistOptions(); -$sideLabelClasses = [ -'whitespace-nowrap group-focus-within:text-primary-500', -'text-gray-400' => ! $errors->has($getStatePath()), -'text-danger-400' => $errors->has($getStatePath()), -]; +$sideLabelClasses = ['whitespace-nowrap group-focus-within:text-primary-500', 'text-gray-400' => !$errors->has($getStatePath()), 'text-danger-400' => $errors->has($getStatePath())]; @endphp - -
merge($getExtraAttributes())->class(['flex items-center space-x-1 rtl:space-x-reverse group - filament-forms-text-input-component']) }}> + +
merge($getExtraAttributes())->class([ + 'flex items-center space-x-1 rtl:space-x-reverse group + filament-forms-text-input-component', + ]) }}> @if ($label = $getPrefixLabel()) - - {{ $label }} - + + {{ $label }} + @endif -
- + class([ - 'block w-full transition duration-75 rounded-lg shadow-sm focus:border-primary-600 focus:ring-1 focus:ring-inset focus:ring-primary-600 disabled:opacity-70', + {{ $getExtraInputAttributeBag()->class([ + 'block w-full transition duration-75 rounded-lg shadow-sm focus:border-primary-600 focus:ring-1 + focus:ring-inset focus:ring-primary-600 disabled:opacity-70', 'dark:bg-gray-700 dark:text-white' => config('forms.dark_mode'), - 'border-gray-300' => ! $errors->has($getStatePath()), - 'dark:border-gray-600' => (! $errors->has($getStatePath())) && config('forms.dark_mode'), + 'border-gray-300' => !$errors->has($getStatePath()), + 'dark:border-gray-600' => !$errors->has($getStatePath()) && config('forms.dark_mode'), 'border-danger-600 ring-danger-600' => $errors->has($getStatePath()), - ]) }}> -
+ ]) }} + > +
- - + + - - + + @@ -63,17 +93,17 @@ @if ($label = $getPostfixLabel()) - - {{ $label }} - + + {{ $label }} + @endif
@if ($datalistOptions) - - @foreach ($datalistOptions as $option) - + + @foreach ($datalistOptions as $option) + @endif