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

62 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"
2018-11-27 14:02:54 +00:00
data="greuges" auto-load="false">
2018-07-16 06:00:04 +00:00
</vn-crud-model>
<mg-ajax
path="/client/api/greuges/{{$ctrl.$stateParams.id}}/sumAmount"
options="mgEdit">
</mg-ajax>
2018-12-14 11:56:21 +00:00
<vn-vertical compact>
2018-03-01 22:38:14 +00:00
<vn-card pad-large>
<vn-horizontal>
<vn-title vn-two>Greuge</vn-title>
2018-07-31 09:08:22 +00:00
<div class="totalBox" ng-if="model.data.length > 0">
<vn-label-value label="Total"
value="{{edit.model.sumAmount | currency: ' €': 2}}">
</vn-label-value>
</div>
</vn-horizontal>
<vn-vertical>
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-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
ui-sref="client.card.greuge.create"
vn-tooltip="New greuge"
vn-acl="salesAssistant"
vn-acl-action="remove"
vn-bind="+">
</vn-float-button>