akaunting 3.0 (the last dance)
This commit is contained in:
25
resources/views/components/form/input/editor.blade.php
Normal file
25
resources/views/components/form/input/editor.blade.php
Normal file
@ -0,0 +1,25 @@
|
||||
<akaunting-html-editor
|
||||
name="{{ $name }}"
|
||||
|
||||
@if (! empty($value))
|
||||
:value="`{!! $value !!}`"
|
||||
@else
|
||||
:value="''"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['model']))
|
||||
:model="{{ $attributes['model'] }}"
|
||||
@endif
|
||||
|
||||
@if (!empty($attributes['v-model']))
|
||||
@input="{{ $attributes['v-model'] . ' = $event' }}"
|
||||
@elseif (!empty($attributes['data-field']))
|
||||
@input="{{ 'form.' . $attributes['data-field'] . '.' . $name . ' = $event' }}"
|
||||
@else
|
||||
@input="form.{{ $name }} = $event"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['disabled']))
|
||||
:disabled="{{ $attributes['disabled'] }}"
|
||||
@endif
|
||||
></akaunting-html-editor>
|
Reference in New Issue
Block a user