salix/modules/claim/front/descriptor/index.html

103 lines
3.4 KiB
HTML
Raw Normal View History

2020-05-06 12:38:09 +00:00
<vn-descriptor-content
module="claim"
description="$ctrl.claim.client.name"
summary="$ctrl.$.summary">
<slot-menu>
2020-05-22 13:20:55 +00:00
<vn-item
ng-click="$ctrl.showPickupOrder()"
2020-05-06 12:38:09 +00:00
translate>
Show Pickup order
2020-05-22 13:20:55 +00:00
</vn-item>
2020-05-06 12:38:09 +00:00
<vn-item
ng-click="confirmPickupOrder.show()"
translate>
Send Pickup order
</vn-item>
<vn-item
vn-acl="claimManager"
2020-05-06 12:38:09 +00:00
vn-acl-action="remove"
ng-click="confirmDeleteClaim.show()"
name="deleteClaim"
translate>
Delete claim
</vn-item>
</slot-menu>
<slot-body>
2019-01-21 14:21:24 +00:00
<div class="attributes">
<vn-label-value
label="State"
2018-09-19 05:41:07 +00:00
value="{{$ctrl.claim.claimState.description}}">
2018-08-24 11:16:11 +00:00
</vn-label-value>
<vn-label-value
label="Created"
value="{{$ctrl.claim.created | date: 'dd/MM/yyyy HH:mm'}}">
2018-12-13 07:31:05 +00:00
</vn-label-value>
<vn-label-value
2020-09-03 13:11:16 +00:00
label="Salesperson">
<span
ng-click="workerDescriptor.show($event, $ctrl.claim.client.salesPersonFk)"
class="link">
{{$ctrl.claim.client.salesPersonUser.name}}
</span>
2018-08-24 11:16:11 +00:00
</vn-label-value>
<vn-label-value
2020-09-03 13:11:16 +00:00
label="Attended by">
<span
ng-click="workerDescriptor.show($event, $ctrl.claim.worker.userFk)"
class="link">
{{$ctrl.claim.worker.user.name}}
</span>
2018-08-24 11:16:11 +00:00
</vn-label-value>
<vn-label-value
label="Agency"
value="{{$ctrl.claim.ticket.agencyMode.name}}">
2019-01-30 07:44:15 +00:00
</vn-label-value>
<vn-label-value
2020-09-03 13:11:16 +00:00
label="Ticket">
<span
ng-click="ticketDescriptor.show($event, $ctrl.claim.ticketFk)"
class="link">
{{$ctrl.claim.ticketFk}}
</span>
2018-12-13 07:31:05 +00:00
</vn-label-value>
2019-01-21 14:21:24 +00:00
</div>
<div class="quicklinks">
<div ng-transclude="btnOne">
<vn-quick-link
tooltip="Client ticket list"
state="['client.card.summary', {id: $ctrl.claim.clientFk}]"
icon="person">
</vn-quick-link>
</div>
<div ng-transclude="btnTwo">
<vn-quick-link
tooltip="Claimed ticket"
state="['ticket.card.summary', {id: $ctrl.claim.ticketFk}]"
icon="icon-ticket">
</vn-quick-link>
</div>
<div ng-transclude="btnThree"></div>
</div>
</slot-body>
</vn-descriptor-content>
2019-01-25 14:08:11 +00:00
<vn-confirm
2020-05-06 12:38:09 +00:00
vn-id="confirmPickupOrder"
on-accept="$ctrl.sendPickupOrder()"
2019-02-12 06:42:19 +00:00
question="Send Pickup order"
message="Are you sure you want to send it?">
</vn-confirm>
<vn-confirm
2020-05-06 12:38:09 +00:00
vn-id="confirmDeleteClaim"
on-accept="$ctrl.deleteClaim()"
question="Delete claim"
message="Are you sure you want to delete this claim?">
2020-09-03 13:11:16 +00:00
</vn-confirm>
<vn-worker-descriptor-popover
vn-id="workerDescriptor">
</vn-worker-descriptor-popover>
<vn-ticket-descriptor-popover
vn-id="ticketDescriptor">
</vn-ticket-descriptor-popover>
<vn-popup vn-id="summary">
<vn-claim-summary claim="$ctrl.claim"></vn-claim-summary>
</vn-popup>