refs #1075 Selectbox add new button action added.
This commit is contained in:
		| @@ -15,7 +15,19 @@ | ||||
|         'text' => trans('general.form.add_new', ['field' => $text]), | ||||
|         'path' => isset($attributes['path']) ? $attributes['path']: false, | ||||
|         'type' => isset($attributes['type']) ? $attributes['type'] : 'modal', | ||||
|         'field' => isset($attributes['field']) ? $attributes['field'] : 'name' | ||||
|         'field' => isset($attributes['field']) ? $attributes['field'] : 'name', | ||||
|         'buttons' => [ | ||||
|             'cancel' => [ | ||||
|                 'text' => trans('general.cancel'), | ||||
|                 'icon' => 'fas fa-times', | ||||
|                 'class' => 'btn-outline-secondary' | ||||
|             ], | ||||
|             'confirm' => [ | ||||
|                 'text' => trans('general.save'), | ||||
|                 'icon' => 'fas fa-save', | ||||
|                 'class' => 'btn-success' | ||||
|             ] | ||||
|         ] | ||||
|     ])}}" | ||||
|     @if (!empty($attributes['collapse'])) | ||||
|     :collapse="true" | ||||
|   | ||||
| @@ -13,7 +13,19 @@ | ||||
|             'text' => trans('general.form.add_new', ['field' => $text]), | ||||
|             'path' => isset($attributes['path']) ? $attributes['path']: false, | ||||
|             'type' => isset($attributes['type']) ? $attributes['type'] : 'modal', | ||||
|             'field' => isset($attributes['field']) ? $attributes['field'] : 'name' | ||||
|             'field' => isset($attributes['field']) ? $attributes['field'] : 'name', | ||||
|             'buttons' => [ | ||||
|                 'cancel' => [ | ||||
|                     'text' => trans('general.cancel'), | ||||
|                     'icon' => 'fas fa-times', | ||||
|                     'class' => 'btn-outline-secondary' | ||||
|                 ], | ||||
|                 'confirm' => [ | ||||
|                     'text' => trans('general.save'), | ||||
|                     'icon' => 'fas fa-save', | ||||
|                     'class' => 'btn-success' | ||||
|                 ] | ||||
|             ] | ||||
|         ])}}" | ||||
|         @interface="{{ !empty($attributes['v-model']) ? $attributes['v-model'] . ' = $event' : 'form.' . $name . ' = $event' }}" | ||||
|         @if (!empty($attributes['change'])) | ||||
|   | ||||
| @@ -13,7 +13,19 @@ | ||||
|             'text' => trans('general.form.add_new', ['field' => $text]), | ||||
|             'path' => isset($attributes['path']) ? $attributes['path']: false, | ||||
|             'type' => isset($attributes['type']) ? $attributes['type'] : 'modal', | ||||
|             'field' => isset($attributes['field']) ? $attributes['field'] : 'name' | ||||
|             'field' => isset($attributes['field']) ? $attributes['field'] : 'name', | ||||
|             'buttons' => [ | ||||
|                 'cancel' => [ | ||||
|                     'text' => trans('general.cancel'), | ||||
|                     'icon' => 'fas fa-times', | ||||
|                     'class' => 'btn-outline-secondary' | ||||
|                 ], | ||||
|                 'confirm' => [ | ||||
|                     'text' => trans('general.save'), | ||||
|                     'icon' => 'fas fa-save', | ||||
|                     'class' => 'btn-success' | ||||
|                 ] | ||||
|             ] | ||||
|         ])}}" | ||||
|         :group="true" | ||||
|         @interface="{{ !empty($attributes['v-model']) ? $attributes['v-model'] . ' = $event' : 'form.' . $name . ' = $event' }}" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user