Show used options in invoice field selects

This commit is contained in:
Hillel Coren 2016-09-21 13:29:45 +03:00
parent 46a63e9854
commit 77ca2e7edf
2 changed files with 14 additions and 12 deletions

View File

@ -133,6 +133,7 @@ function loadFields(selectedFields)
<style type="text/css">
.field-list {
width: 100%;
margin-top: 12px;

View File

@ -6,17 +6,18 @@
->onchange("addField('{$section}')")
->raw() !!}
<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 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>
</div>