1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 17:01:33 +02:00
invoiceninja/resources/views/accounts/partials/invoice_fields_selector.blade.php

24 lines
906 B
PHP
Raw Normal View History

2016-09-05 14:28:59 +02:00
<div class="col-lg-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() !!}
<div class="table-responsive">
<table class="field-list">
<tbody data-bind="sortable: { data: {{ $section }}, as: 'field', afterMove: onDragged }">
<tr style="cursor:move;background-color:#fff;margin:1px">
<td>
<i class="fa fa-close" style="cursor:pointer" title="{{ trans('texts.remove') }}"
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>