salix/client/client/src/greuge/index/index.html

60 lines
2.1 KiB
HTML
Raw Normal View History

2018-07-16 06:00:04 +00:00
<vn-crud-model
vn-id="model"
url="/client/api/greuges"
filter="::$ctrl.filter"
link="{clientFk: $ctrl.$stateParams.id}"
limit="20"
data="greuges">
</vn-crud-model>
<mg-ajax
path="/client/api/greuges/{{$ctrl.$stateParams.id}}/sumAmount"
options="mgEdit">
</mg-ajax>
2018-03-23 10:33:54 +00:00
<vn-vertical>
2018-03-01 22:38:14 +00:00
<vn-card pad-large>
<vn-vertical>
<vn-title>Greuge</vn-title>
2018-07-16 06:00:04 +00:00
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th field="shipped" default-order="DESC">Date</vn-th>
<vn-th field="description">Comment</vn-th>
<vn-th field="amount">Amount</vn-th>
<vn-th field="greugeTypeFk">Type</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="greuge in greuges">
<vn-td>{{::greuge.shipped | date:'dd/MM/yyyy HH:mm' }}</vn-td>
<vn-td>{{::greuge.description}}</vn-td>
<vn-td>{{::greuge.amount | currency: ' €': 2}}</vn-td>
<vn-td>{{::greuge.greugeType.name}}</vn-td>
</vn-tr>
</vn-tbody>
<vn-empty-rows ng-if="model.data.length === 0" translate>
No results
</vn-empty-rows>
<vn-tfoot ng-if="model.data.length > 0">
<vn-tr>
<vn-td></vn-td>
<vn-td></vn-td>
<vn-td>
<strong>{{edit.model.sumAmount | currency: ' €': 2}}</strong>
</vn-td>
<vn-td></vn-td>
</vn-tr>
</vn-tfoot>
</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>
2018-05-23 12:26:51 +00:00
<a ui-sref="client.card.greuge.create" vn-bind="+" fixed-bottom-right>
2017-12-04 07:17:29 +00:00
<vn-float-button icon="add"></vn-float-button>
2018-01-18 14:27:35 +00:00
</a>