70 lines
3.1 KiB
HTML
70 lines
3.1 KiB
HTML
|
<vn-popover vn-id="popover" on-close="$ctrl.clear()">
|
||
|
<vn-card class="vn-descriptor">
|
||
|
<vn-horizontal class="header">
|
||
|
<a translate-attr="{title: 'Return to module index'}" ui-sref="item.index">
|
||
|
<vn-icon icon="chevron_left"></vn-icon>
|
||
|
</a>
|
||
|
<vn-icon icon="inbox"></vn-icon>
|
||
|
<a translate-attr="{title: 'Preview'}" ui-sref="item.card.summary({id: $ctrl.item.id})">
|
||
|
<vn-icon icon="desktop_windows"></vn-icon>
|
||
|
</a>
|
||
|
</vn-horizontal>
|
||
|
<div pad-medium>
|
||
|
<vn-horizontal>
|
||
|
<h5>{{$ctrl.item.id}}</h5>
|
||
|
</vn-horizontal>
|
||
|
<vn-horizontal>
|
||
|
<vn-vertical class="data">
|
||
|
<vn-auto>
|
||
|
<vn-label-value label="Name"
|
||
|
value="{{$ctrl.item.name}}">
|
||
|
</vn-label-value>
|
||
|
<vn-label-value label="Buyer"
|
||
|
value="{{$ctrl.item.workerFirstName}} {{$ctrl.item.workerName}}">
|
||
|
</vn-label-value>
|
||
|
<vn-label-value
|
||
|
ng-repeat="tag in $ctrl.tags"
|
||
|
label="{{::tag.tag.name}}"
|
||
|
value="{{::tag.value}}">
|
||
|
</vn-label-value>
|
||
|
</vn-auto>
|
||
|
<vn-icon-button
|
||
|
class="button"
|
||
|
label="Save"
|
||
|
ng-click="$ctrl.saveQuantity($ctrl.prices)"></vn-icon-button>
|
||
|
</vn-vertical>
|
||
|
<vn-vertical class="prices">
|
||
|
<vn-horizontal
|
||
|
ng-repeat="price in $ctrl.prices">
|
||
|
<vn-one class="ellipsize text" title="{{::price.warehouseName}}">{{::price.warehouseName}}</vn-one>
|
||
|
<vn-one class="number text">
|
||
|
<span orange ng-click="$ctrl.addQuantity(price)" class="link">{{::price.grouping}} x </span><span>{{::price.price | currency: ' €': 2}}</span>
|
||
|
</vn-one>
|
||
|
<vn-one>
|
||
|
<vn-textfield
|
||
|
label="Qty."
|
||
|
type="number"
|
||
|
model="price.quantity"
|
||
|
vn-acl="buyer">
|
||
|
</vn-textfield>
|
||
|
</vn-one>
|
||
|
</vn-horizontal>
|
||
|
</vn-vertical>
|
||
|
</vn-horizontal>
|
||
|
<vn-horizontal class="buttons-bar">
|
||
|
<vn-one
|
||
|
vn-tooltip="Last entries"
|
||
|
tooltip-position="down">
|
||
|
<vn-button ui-sref="item.card.diary({id: $ctrl.item.id})" icon="icon-transaction">
|
||
|
</vn-button>
|
||
|
</vn-one>
|
||
|
<vn-one>
|
||
|
<vn-button
|
||
|
label="Save"
|
||
|
ng-click="$ctrl.saveQuantity($ctrl.prices)"></vn-button>
|
||
|
</vn-one>
|
||
|
</vn-horizontal>
|
||
|
</div>
|
||
|
</vn-card>
|
||
|
</vn-popover>
|