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

23 lines
728 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() !!}
<table class="field-list">
2016-09-05 14:28:59 +02:00
<tbody data-bind="sortable: { data: {{ $section }}, as: 'field', afterMove: onDragged }">
2016-09-05 07:10:39 +02:00
<tr>
<td>
<i class="fa fa-close" data-bind="click: $root.{{ Utils::toCamelCase('remove' . ucwords($section)) }}"></i>
2016-09-05 14:28:59 +02:00
<span data-bind="text: window.field_map[field]"></span>
2016-09-05 07:10:39 +02:00
<i class="fa fa-bars"></i>
</td>
</tr>
</tbody>
</table>
</div>