admin-lte-template
admin-lte-template copied to clipboard
Readonly attribute not supported
Using this template the "readonly" attribute is not supported.
FormItem::text('id', 'USER Id')->readonly(true),
For example text.blade.php from
<div class="form-group {{ $errors->has($name) ? 'has-error' : '' }}">
<label for="{{ $name }}">{{ $label }}</label>
<input class="form-control" name="{{ $name }}" type="text" id="{{ $name }}" value="{{ $value }}">
@include(AdminTemplate::view('formitem.errors'))
</div>
should be changed in
<div class="form-group {{ $errors->has($name) ? 'has-error' : '' }}">
<label for="{{ $name }}">{{ $label }}</label>
<input class="form-control" name="{{ $name }}" type="text" id="{{ $name }}" value="{{ $value }}" @if(isset($readonly))readonly="{{ $readonly }}" @endif>
@include(AdminTemplate::view('formitem.errors'))
</div>