X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/421dd93ffd59bbe881df1f7fa86066f7f353b596..refs/pull/3391/head:/resources/views/form/text.blade.php diff --git a/resources/views/form/text.blade.php b/resources/views/form/text.blade.php index 909e87286..fabfab451 100644 --- a/resources/views/form/text.blade.php +++ b/resources/views/form/text.blade.php @@ -1,9 +1,10 @@ has($name)) class="text-neg" @endif @if(isset($placeholder)) placeholder="{{$placeholder}}" @endif - @if(isset($disabled) && $disabled) disabled="disabled" @endif - @if(isset($tabindex)) tabindex="{{$tabindex}}" @endif + @if($autofocus ?? false) autofocus @endif + @if($disabled ?? false) disabled="disabled" @endif + @if($readonly ?? false) readonly="readonly" @endif @if(isset($model) || old($name)) value="{{ old($name) ? old($name) : $model->$name}}" @endif> @if($errors->has($name))
{{ $errors->first($name) }}
-@endif \ No newline at end of file +@endif