refs #1147 invoice item create inline..

This commit is contained in:
Cüneyt Şentürk
2020-01-21 17:05:37 +03:00
parent 0876197e35
commit a8522812b2
7 changed files with 164 additions and 23 deletions

View File

@@ -24,22 +24,10 @@
:value="'{{ old('item_id', '') }}'"
:add-new="{{ json_encode([
'status' => true,
'text' => trans('general.form.add_new', ['field' => trans_choice('general.items', 1)]),
'path' => isset($attributes['path']) ? $attributes['path']: false,
'type' => isset($attributes['type']) ? $attributes['type'] : 'modal',
'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'
]
]
'text' => trans('general.form.add_new', ['field' => '']),
'path' => route('modals.items.store'),
'type' => 'inline',
'field' => 'name',
])}}"
@interface="row.item_id = $event"
@label="row.name = $event"