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"> <style type="text/css">
.field-list { .field-list {
width: 100%; width: 100%;
margin-top: 12px; margin-top: 12px;

View File

@ -6,17 +6,18 @@
->onchange("addField('{$section}')") ->onchange("addField('{$section}')")
->raw() !!} ->raw() !!}
<table class="field-list"> <div class="table-responsive">
<tbody data-bind="sortable: { data: {{ $section }}, as: 'field', afterMove: onDragged }"> <table class="field-list">
<tr style="cursor:move;background-color:#fff;margin:1px"> <tbody data-bind="sortable: { data: {{ $section }}, as: 'field', afterMove: onDragged }">
<td> <tr style="cursor:move;background-color:#fff;margin:1px">
<i class="fa fa-close" style="cursor:pointer" title="{{ trans('texts.remove') }}" <td>
data-bind="click: $root.{{ Utils::toCamelCase('remove' . ucwords($section)) }}"></i> <i class="fa fa-close" style="cursor:pointer" title="{{ trans('texts.remove') }}"
<span data-bind="text: window.field_map[field]"></span> data-bind="click: $root.{{ Utils::toCamelCase('remove' . ucwords($section)) }}"></i>
</td> <span data-bind="text: window.field_map[field]"></span>
</tr> </td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
</div> </div>