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

54 lines
1.7 KiB
HTML
Raw Normal View History

2018-07-16 06:00:04 +00:00
<vn-crud-model
vn-id="model"
url="Recoveries"
2018-07-16 06:00:04 +00:00
link="{clientFk: $ctrl.$stateParams.id}"
limit="20"
2019-10-01 14:17:57 +00:00
data="recoveries"
2019-10-02 17:24:42 +00:00
order="started DESC"
auto-load="true">
2018-07-16 06:00:04 +00:00
</vn-crud-model>
2019-10-02 17:24:42 +00:00
<vn-data-viewer
model="model"
class="vn-w-md">
2019-10-01 14:17:57 +00:00
<vn-card>
2019-10-02 17:24:42 +00:00
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th></vn-th>
<vn-th field="started">Since</vn-th>
<vn-th field="finished">To</vn-th>
<vn-th field="amount" number>Amount</vn-th>
<vn-th field="period" number>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"
vn-tooltip="Finish that recovery period"
ng-if="!recovery.finished"
ng-click="$ctrl.setFinished(recovery)">
</vn-icon-button>
</vn-td>
<vn-td>{{::recovery.started | date:'dd/MM/yyyy' }}</vn-td>
<vn-td>{{recovery.finished | date:'dd/MM/yyyy' }}</vn-td>
2019-10-02 17:24:42 +00:00
<vn-td number>{{::recovery.amount | currency: 'EUR': 0}}</vn-td>
<vn-td number>{{::recovery.period}}</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
2018-03-01 22:38:14 +00:00
</vn-card>
2019-10-02 17:24:42 +00:00
</vn-data-viewer>
2019-10-01 14:17:57 +00:00
<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">
2019-10-01 14:17:57 +00:00
</vn-float-button>