59 lines
2.2 KiB
HTML
59 lines
2.2 KiB
HTML
<div class="vn-descriptor">
|
|
<div class="header">
|
|
<a translate-attr="{title: 'Return to module index'}" ui-sref="order.index">
|
|
<vn-icon icon="chevron_left"></vn-icon>
|
|
</a>
|
|
<a translate-attr="{title: 'Preview'}" ui-sref="order.card.summary">
|
|
<vn-icon icon="desktop_windows"></vn-icon>
|
|
</a>
|
|
<vn-icon-menu
|
|
vn-id="more-button"
|
|
icon="more_vert"
|
|
show-filter="false"
|
|
value-field="callback"
|
|
translate-fields="['name']"
|
|
data="$ctrl.moreOptions"
|
|
on-change="value()">
|
|
</vn-icon-menu>
|
|
</div>
|
|
<div class="body">
|
|
<div class="attributes">
|
|
<vn-label-value label="ID"
|
|
value="{{$ctrl.order.id}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Client"
|
|
value="{{$ctrl.order.client.name}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="State"
|
|
value="{{$ctrl.order.isConfirmed ? $ctrl.$translate.instant('Confirmed') : $ctrl.$translate.instant('Not confirmed')}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Sales person"
|
|
value="{{$ctrl.order.client.salesPerson.user.nickname}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Landed"
|
|
value="{{$ctrl.order.landed | date: 'dd/MM/yyyy' }}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Agency"
|
|
value="{{$ctrl.order.agencyMode.name}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Alias"
|
|
value="{{$ctrl.order.address.nickname}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Items"
|
|
value="{{$ctrl.order.rows.length || 0}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Total"
|
|
value="{{$ctrl.order.total | currency: 'EUR': 2}}">
|
|
</vn-label-value>
|
|
</div>
|
|
<vn-quick-links
|
|
links="$ctrl.quicklinks">
|
|
</vn-quick-links>
|
|
</div>
|
|
</div>
|
|
<vn-confirm
|
|
vn-id="deleteOrderConfirmation"
|
|
on-response="$ctrl.deleteOrder($response)"
|
|
message="You are going to delete this order"
|
|
question="continue anyway?">
|
|
</vn-confirm> |