2017-10-27 10:46:08 +02:00
|
|
|
<div class="col-lg-{{ isset($colWidth) ? $colWidth : 3 }} col-md-6">
|
2016-09-05 07:10:39 +02:00
|
|
|
|
|
|
|
{!! Former::select("{$section}_select")
|
|
|
|
->placeholder(trans("texts.{$fields}"))
|
|
|
|
->options($account->getAllInvoiceFields()[$fields])
|
|
|
|
->onchange("addField('{$section}')")
|
|
|
|
->raw() !!}
|
|
|
|
|
2016-09-21 12:29:45 +02:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="field-list">
|
2017-10-29 11:39:15 +01:00
|
|
|
<tbody data-bind="sortable: { data: {{ $section }}, as: 'field', afterMove: onDragged, allowDrop: {{ in_array($section, ['product_fields', 'task_fields']) ? 'false' : 'true' }} }">
|
2016-09-21 12:29:45 +02:00
|
|
|
<tr style="cursor:move;background-color:#fff;margin:1px">
|
|
|
|
<td>
|
2017-10-29 11:39:15 +01:00
|
|
|
<i class="fa fa-close" style="cursor:default" title="{{ trans('texts.remove') }}"
|
2016-09-21 12:29:45 +02:00
|
|
|
data-bind="click: $root.{{ Utils::toCamelCase('remove' . ucwords($section)) }}"></i>
|
|
|
|
<span data-bind="text: window.field_map[field]"></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2016-09-05 07:10:39 +02:00
|
|
|
|
|
|
|
</div>
|