From f165dea5b602003d917aef8be8631ca8af43a04d Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Tue, 9 Mar 2021 21:38:04 +0000 Subject: [PATCH] formatting --- .../forms/resources/views/components/text-input.blade.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/forms/resources/views/components/text-input.blade.php b/packages/forms/resources/views/components/text-input.blade.php index 01a00022c9..086a8b5caf 100644 --- a/packages/forms/resources/views/components/text-input.blade.php +++ b/packages/forms/resources/views/components/text-input.blade.php @@ -8,11 +8,12 @@ :required="$formComponent->required" >
- @if($formComponent->prefix) + @if ($formComponent->prefix) {{ $formComponent->prefix }} @endif + autocomplete ? "autocomplete=\"{$formComponent->autocomplete}\"" : null !!} {!! $formComponent->autofocus ? 'autofocus' : null !!} @@ -24,7 +25,7 @@ {!! $formComponent->placeholder ? "placeholder=\"{$formComponent->placeholder}\"" : null !!} {!! $formComponent->required ? 'required' : null !!} {!! $formComponent->type ? "type=\"{$formComponent->type}\"" : null !!} - class="block w-full rounded-r-md placeholder-gray-400 focus:placeholder-gray-500 placeholder-opacity-100 focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50 {{ $errors->has($formComponent->name) ? 'border-danger-600 motion-safe:animate-shake' : 'border-gray-300' }} {{ !$formComponent->prefix ? 'rounded-l-md' : null }}" + class="block w-full rounded-r-md placeholder-gray-400 focus:placeholder-gray-500 placeholder-opacity-100 focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50 {{ ! $formComponent->prefix ? 'rounded-l-md' : null }} {{ $errors->has($formComponent->name) ? 'border-danger-600 motion-safe:animate-shake' : 'border-gray-300' }}" {!! Filament\format_attributes($formComponent->extraAttributes) !!} />