selectbox add new new style

This commit is contained in:
Cüneyt Şentürk
2020-03-06 18:04:23 +03:00
parent 080c6616c2
commit 67f35aa9a2
4 changed files with 69 additions and 9 deletions

View File

@ -31,6 +31,7 @@
'path' => isset($attributes['path']) ? $attributes['path']: false,
'type' => isset($attributes['type']) ? $attributes['type'] : 'modal',
'field' => isset($attributes['field']) ? $attributes['field'] : 'name',
'new_text' => trans('modules.new'),
'buttons' => [
'cancel' => [
'text' => trans('general.cancel'),

View File

@ -6,7 +6,7 @@
@if (!empty($attributes['v-error']))
:form-classes="[{'has-error': {{ $attributes['v-error'] }} }]"
@else
:form-classes="[{'has-error': form.errors.get('{{ $name }}') }]"
:form-classes="[{'has-error': form.errors.has('{{ $name }}') }]"
@endif
icon="{{ $icon }}"
@ -29,6 +29,7 @@
'path' => isset($attributes['path']) ? $attributes['path']: false,
'type' => isset($attributes['type']) ? $attributes['type'] : 'modal',
'field' => isset($attributes['field']) ? $attributes['field'] : 'name',
'new_text' => trans('modules.new'),
'buttons' => [
'cancel' => [
'text' => trans('general.cancel'),
@ -46,7 +47,7 @@
@elseif (!empty($attributes['data-field']))
@interface="{{ 'form.' . $attributes['data-field'] . '.' . $name . ' = $event' }}"
@else
@interface="form.{{ $name }} = $event"
@interface="form.{{ $name }} = $event; form.errors.clear('{{ $name }}');"
@endif
@if (!empty($attributes['change']))

View File

@ -6,7 +6,7 @@
@if (!empty($attributes['v-error']))
:form-classes="[{'has-error': {{ $attributes['v-error'] }} }]"
@else
:form-classes="[{'has-error': form.errors.get('{{ $name }}') }]"
:form-classes="[{'has-error': form.errors.has('{{ $name }}') }]"
@endif
icon="{{ $icon }}"
@ -29,6 +29,7 @@
'path' => isset($attributes['path']) ? $attributes['path']: false,
'type' => isset($attributes['type']) ? $attributes['type'] : 'modal',
'field' => isset($attributes['field']) ? $attributes['field'] : 'name',
'new_text' => trans('modules.new'),
'buttons' => [
'cancel' => [
'text' => trans('general.cancel'),
@ -48,7 +49,7 @@
@elseif (!empty($attributes['data-field']))
@interface="{{ 'form.' . $attributes['data-field'] . '.' . $name . ' = $event' }}"
@else
@interface="form.{{ $name }} = $event"
@interface="form.{{ $name }} = $event; form.errors.clear('{{ $name }}');"
@endif
@if (!empty($attributes['change']))