salix/modules/client/front/web-payment/index.html

57 lines
2.6 KiB
HTML
Raw Normal View History

2018-09-28 13:00:12 +00:00
<vn-crud-model
vn-id="model"
url="/client/api/clients/getTransactions"
link="{clientFk: $ctrl.$stateParams.id}"
limit="20"
2018-11-27 14:02:54 +00:00
data="transactions" auto-load="false">
2018-09-28 13:00:12 +00:00
</vn-crud-model>
2018-12-17 12:52:16 +00:00
<vn-vertical compact>
<vn-card pad-large>
2018-09-28 13:00:12 +00:00
<vn-vertical>
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th>State</vn-th>
<vn-th field="id">Id</vn-th>
2018-09-28 13:00:12 +00:00
<vn-th field="amount" number>Amount</vn-th>
<vn-th field="created" default-order="DESC">Payed</vn-th>
<vn-th>Confirm</vn-th>
2018-09-28 13:00:12 +00:00
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="transaction in transactions">
<vn-td style="width: 3em; text-align: center">
<vn-icon
vn-tooltip="{{$ctrl.getFormattedMessage(transaction)}}"
ng-show="::((transaction.errorMessage || transaction.responseMessage) && !transaction.isConfirmed)"
icon="clear">
</vn-icon>
<vn-icon
vn-tooltip="Confirmed"
ng-show="::(transaction.isConfirmed)"
icon="check">
</vn-icon>
</vn-td>
<vn-td>{{::transaction.id}}</vn-td>
<vn-td number>{{::transaction.amount | currency: 'EUR':2}}</vn-td>
<vn-td>{{::transaction.created | dateTime:'dd/MM/yyyy'}}</vn-td>
2018-09-28 13:00:12 +00:00
<vn-td style="width: 3em; text-align: center">
<vn-icon-button
icon="done_all"
vn-acl="administrative"
2018-11-23 07:44:19 +00:00
vn-acl-action="remove"
2018-09-28 13:00:12 +00:00
vn-tooltip="Confirm transaction"
ng-show="::!transaction.isConfirmed"
2018-10-17 10:49:18 +00:00
ng-click="$ctrl.confirm(transaction)">
</vn-icon-button>
2018-09-28 13:00:12 +00:00
</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-09-28 13:00:12 +00:00
</vn-card>
</vn-vertical>