40 lines
1.3 KiB
HTML
40 lines
1.3 KiB
HTML
<vn-crud-model
|
|
vn-id="model"
|
|
url="/client/api/ClientCredits"
|
|
filter="::$ctrl.filter"
|
|
link="{clientFk: $ctrl.$stateParams.id}"
|
|
limit="20"
|
|
data="credits" auto-load="false">
|
|
</vn-crud-model>
|
|
<vn-vertical compact>
|
|
<vn-card pad-large>
|
|
<vn-vertical>
|
|
<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 | dateTime:'dd/MM/yyyy HH:mm'}}</vn-td>
|
|
<vn-td>{{::credit.worker.user.nickname}}</vn-td>
|
|
</vn-tr>
|
|
</vn-tbody>
|
|
</vn-table>
|
|
</vn-vertical>
|
|
<vn-pagination model="model"></vn-pagination>
|
|
</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>
|