]> BookStack Code Mirror - bookstack/blobdiff - resources/views/form/text.blade.php
Updated attachment links to have dropdown for open type
[bookstack] / resources / views / form / text.blade.php
index 909e87286247daaba449ebfc7ae320ba24346660..fabfab451680167937588b463be09735ed4fa933 100644 (file)
@@ -1,9 +1,10 @@
 <input type="text" id="{{ $name }}" name="{{ $name }}"
        @if($errors->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))
     <div class="text-neg text-small">{{ $errors->first($name) }}</div>
-@endif
\ No newline at end of file
+@endif