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

57 lines
1.9 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"
2019-10-01 14:17:57 +00:00
data="greuges"
auto-load="true">
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>
2019-10-01 14:17:57 +00:00
<div class="vn-w-md">
<vn-card
ng-if="model.data.length > 0"
style="text-align: right;"
class="margin-medium-bottom pad-large">
<vn-label-value
label="Total"
value="{{edit.model.sumAmount | currency: 'EUR': 2}}">
</vn-label-value>
</vn-card>
<vn-card>
<vn-vertical>
<vn-table model="model" auto-load="false">
2018-07-16 06:00:04 +00:00
<vn-thead>
<vn-tr>
<vn-th field="shipped" default-order="DESC">Date</vn-th>
<vn-th field="description">Comment</vn-th>
<vn-th field="greugeTypeFk">Type</vn-th>
2019-10-01 14:17:57 +00:00
<vn-th field="amount" number>Amount</vn-th>
2018-07-16 06:00:04 +00:00
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="greuge in greuges">
2019-02-27 16:04:00 +00:00
<vn-td>{{::greuge.shipped | dateTime:'dd/MM/yyyy HH:mm' }}</vn-td>
2018-07-16 06:00:04 +00:00
<vn-td>{{::greuge.description}}</vn-td>
<vn-td>{{::greuge.greugeType.name}}</vn-td>
2019-10-01 14:17:57 +00:00
<vn-td number>{{::greuge.amount | currency: 'EUR': 2}}</vn-td>
2018-07-16 06:00:04 +00:00
</vn-tr>
</vn-tbody>
</vn-table>
</vn-vertical>
2018-03-01 22:38:14 +00:00
</vn-card>
2019-10-01 14:17:57 +00:00
<vn-pagination model="model"></vn-pagination>
</div>
<vn-float-button
icon="add"
ui-sref="client.card.greuge.create"
vn-tooltip="New greuge"
vn-acl="salesAssistant"
vn-acl-action="remove"
2019-10-01 14:17:57 +00:00
vn-bind="+"
fixed-bottom-right>
</vn-float-button>