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

91 lines
3.0 KiB
HTML

<vn-descriptor-content module="claim">
<slot-menu>
<ul class="vn-list">
<li>
<a class="vn-item"
ui-sref="ticket.create({clientFk: $ctrl.client.id})"
translate>
Show Pickup order
</a>
</li>
<li>
<div class="vn-item"
ng-click="confirmPickupOrder.show()"
translate>
Send Pickup order
</div>
</li>
<li vn-acl="salesAssistant">
<div class="vn-item"
ng-click="confirmDeleteClaim.show()"
translate>
Delete claim
</div>
</li>
</ul>
</slot-menu>
<slot-body>
<div class="attributes">
<h5>{{$ctrl.claim.id}}</h5>
<vn-label-value
label="Client"
value="{{::$ctrl.claim.client.name}}">
</vn-label-value>
<vn-label-value
label="State"
value="{{$ctrl.claim.claimState.description}}">
</vn-label-value>
<vn-label-value
label="Created"
value="{{$ctrl.claim.created | date: 'dd/MM/yyyy HH:mm'}}">
</vn-label-value>
<vn-label-value
label="Salesperson"
value="{{$ctrl.claim.client.salesPerson.user.nickname}}">
</vn-label-value>
<vn-label-value
label="Attended by"
value="{{$ctrl.claim.worker.user.nickname}}">
</vn-label-value>
<vn-label-value
label="Agency"
value="{{$ctrl.claim.ticket.agencyMode.name}}">
</vn-label-value>
<vn-label-value
label="Ticket"
value="{{$ctrl.claim.ticketFk}}">
</vn-label-value>
</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>
<vn-confirm
vn-id="confirm-pickup-order"
on-accept="$ctrl.sendPickupOrder()"
question="Send Pickup order"
message="Are you sure you want to send it?">
</vn-confirm>
<vn-confirm
vn-id="confirm-delete-claim"
on-accept="$ctrl.deleteClaim()"
question="Delete claim"
message="Are you sure you want to delete this claim?">
</vn-confirm>