Form group readonly and disabled feature added

This commit is contained in:
Cüneyt Şentürk
2020-02-01 18:47:15 +03:00
parent 9cb174f68c
commit 37e10eae8f
29 changed files with 306 additions and 51 deletions

View File

@ -1,9 +1,11 @@
@stack($name . '_input_start')
<div
class="form-group {{ $col }}{{ isset($attributes['required']) ? ' required' : '' }}{{ isset($attributes['disabled']) ? ' disabled' : '' }}"
class="form-group {{ $col }}{{ isset($attributes['required']) ? ' required' : '' }}{{ isset($attributes['readonly']) ? ' readonly' : '' }}{{ isset($attributes['disabled']) ? ' disabled' : '' }}"
:class="[{'has-error': {{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }} }]">
{!! Form::label($name, $text, ['class' => 'form-control-label']) !!}
@if (!empty($text))
{!! Form::label($name, $text, ['class' => 'form-control-label'])!!}
@endif
<div class="row">
@foreach($items as $item)