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

64 lines
2.2 KiB
HTML
Raw Permalink Normal View History

2018-07-16 06:00:04 +00:00
<vn-crud-model
vn-id="model"
url="greuges"
2018-07-16 06:00:04 +00:00
filter="::$ctrl.filter"
2020-03-17 10:17:50 +00:00
link="{clientFk: $ctrl.$params.id}"
2018-07-16 06:00:04 +00:00
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="greuges/{{$ctrl.$params.id}}/sumAmount"
2018-07-16 06:00:04 +00:00
options="mgEdit">
</mg-ajax>
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
ng-if="model.data.length > 0"
style="text-align: right;"
class="vn-mb-md vn-pa-lg">
2019-10-01 14:17:57 +00:00
<vn-label-value
label="Total"
2019-10-01 14:17:57 +00:00
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" expand>Date</vn-th>
<vn-th field="userFk">Created by</vn-thfield></vn-th>
2018-07-16 06:00:04 +00:00
<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">
2021-08-15 06:35:14 +00:00
<vn-td shrink-datetime>{{::greuge.shipped | date:'dd/MM/yyyy HH:mm' }}</vn-td>
2022-11-10 07:36:26 +00:00
<vn-td><span ng-click="workerDescriptor.show($event, greuge.user.id)"
class="link">{{::greuge.user.name}}</span></vn-td>
2019-12-19 10:37:53 +00:00
<vn-td>
<span title="{{::greuge.description}}">{{::greuge.description}}</span>
</vn-td>
2018-07-16 06:00:04 +00:00
<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-02 17:24:42 +00:00
</vn-data-viewer>
2019-10-01 14:17:57 +00:00
<vn-float-button
icon="add"
ui-sref="client.card.greuge.create"
vn-tooltip="New greuge"
vn-acl="salesAssistant,claimManager"
vn-acl-action="remove"
2019-10-01 14:17:57 +00:00
vn-bind="+"
fixed-bottom-right>
</vn-float-button>
<vn-worker-descriptor-popover vn-id="workerDescriptor"></vn-worker-descriptor-popover>