salix/modules/client/front/credit/index/index.html

45 lines
1.5 KiB
HTML
Raw Normal View History

2018-07-16 06:00:04 +00:00
<vn-crud-model
vn-id="model"
url="/client/api/ClientCredits"
filter="::$ctrl.filter"
link="{clientFk: $ctrl.$stateParams.id}"
limit="20"
2018-11-27 14:02:54 +00:00
data="credits" auto-load="false">
2018-07-16 06:00:04 +00:00
</vn-crud-model>
2018-12-17 12:52:16 +00:00
<vn-vertical compact>
<vn-card pad-large>
<vn-vertical>
2018-07-25 13:14:03 +00:00
<vn-title>Credits</vn-title>
2018-07-16 06:00:04 +00:00
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th field="amount">Credit</vn-th>
<vn-th field="created" default-order="DESC">Since</vn-th>
<vn-th>Employee</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="credit in credits track by credit.id">
<vn-td>{{::credit.amount | number:2}} €</vn-td>
<vn-td>{{::credit.created | date:'dd/MM/yyyy HH:mm'}}</vn-td>
<vn-td>{{::credit.worker.firstName}} {{::credit.worker.name}}</vn-td>
</vn-tr>
</vn-tbody>
<vn-empty-rows ng-if="model.data.length === 0" translate>
No results
</vn-empty-rows>
</vn-table>
</vn-vertical>
2019-01-20 17:48:03 +00:00
<vn-pagination model="model"></vn-pagination>
2018-03-01 22:38:14 +00:00
</vn-card>
</vn-vertical>
<vn-float-button icon="add" fixed-bottom-right
ui-sref="client.card.credit.create"
vn-acl="teamBoss"
vn-acl-action="remove"
vn-tooltip="New credit"
vn-bind="+">
</vn-float-button>