salix/client/client/src/recovery/index/index.html

59 lines
2.2 KiB
HTML
Raw Normal View History

2018-07-16 06:00:04 +00:00
<vn-crud-model
vn-id="model"
url="/client/api/Recoveries"
filter="{}"
link="{clientFk: $ctrl.$stateParams.id}"
limit="20"
data="recoveries">
</vn-crud-model>
2018-03-23 10:33:54 +00:00
<vn-vertical>
2018-03-01 22:38:14 +00:00
<vn-card pad-large>
<vn-vertical>
2018-07-25 13:14:03 +00:00
<vn-title>Recoveries</vn-title>
2018-07-16 06:00:04 +00:00
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th></vn-th>
<vn-th field="started" default-order="DESC">Since</vn-th>
<vn-th field="finished">To</vn-th>
<vn-th field="amount">Amount</vn-th>
<vn-th field="period">Period</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="recovery in recoveries">
<vn-td>
<vn-icon-button icon="lock"
vn-acl="administrative"
vn-acl-action="remove"
2018-07-16 06:00:04 +00:00
vn-tooltip="Finish that recovery period"
ng-if="!recovery.finished"
on-click="$ctrl.setFinished(recovery)">
</vn-icon-button>
2018-07-16 06:00:04 +00:00
</vn-td>
<vn-td>{{::recovery.started | date:'dd/MM/yyyy' }}</vn-td>
<vn-td>{{recovery.finished | date:'dd/MM/yyyy' }}</vn-td>
<vn-td>{{::recovery.amount | currency:' €': 0}}</vn-td>
<vn-td>{{::recovery.period}}</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>
2018-07-16 06:00:04 +00:00
<vn-pagination
model="model"
scroll-selector="ui-view">
</vn-pagination>
2018-03-01 22:38:14 +00:00
</vn-card>
</vn-vertical>
<vn-float-button icon="add" fixed-bottom-right
vn-tooltip="New recovery"
vn-bind="+"
vn-acl="administrative"
vn-acl-action="remove"
ui-sref="client.card.recovery.create">
</vn-float-button>