salix/modules/supplier/front/index/index.html

66 lines
2.5 KiB
HTML
Raw Normal View History

<vn-auto-search
2020-11-12 15:03:23 +00:00
model="model">
</vn-auto-search>
<vn-data-viewer
2020-11-12 15:03:23 +00:00
model="model"
class="vn-w-sm">
<vn-card>
<div class="vn-list separated">
<a
ng-repeat="supplier in model.data track by supplier.id"
ui-sref="supplier.card.summary(::{id: supplier.id})"
translate-attr="{title: 'View supplier'}"
class="vn-item search-result">
<vn-item-section>
<h6>{{::supplier.socialName}}</h6>
<vn-label-value
label="Id"
value="{{::supplier.id}}">
</vn-label-value>
<vn-label-value
label="Tax number"
value="{{::supplier.nif}}">
</vn-label-value>
<vn-label-value
label="Alias"
value="{{::supplier.alias}}">
</vn-label-value>
<vn-label-value
label="Pay method"
value="{{::supplier.payMethod}}">
</vn-label-value>
<vn-label-value
label="Payment deadline"
value="{{::supplier.payDem}}">
</vn-label-value>
<vn-label-value
label="Pay day"
value="{{::supplier.payDay}}">
</vn-label-value>
<vn-label-value
label="Account"
value="{{::supplier.account}}">
</vn-label-value>
</vn-item-section>
<vn-item-section side>
<vn-icon-button
ng-click="$ctrl.openSummary(supplier, $event)"
vn-tooltip="Preview"
2020-11-24 07:22:54 +00:00
icon="preview">
2020-11-12 15:03:23 +00:00
</vn-icon-button>
</vn-item-section>
</a>
</div>
</vn-card>
</vn-data-viewer>
2020-11-18 10:47:23 +00:00
<vn-popup vn-id="dialog-summary-supplier">
2020-11-12 15:03:23 +00:00
<vn-supplier-summary
supplier="$ctrl.supplierSelected">
</vn-supplier-summary>
</vn-popup>
<!--vn-float-button vn-acl="administrative" icon="add" ng-click="$ctrl.test()" fixed-bottom-right vn-tooltip="New supplier"></vn-float-button>
-->
<a vn-acl="administrative" ui-sref="supplier.create" vn-tooltip="New supplier" vn-bind="+" fixed-bottom-right>
<vn-float-button icon="add"></vn-float-button>
</a>