2018-08-20 07:01:38 +00:00
|
|
|
<vn-popover vn-id="popover" on-close="$ctrl.clear()">
|
2019-01-31 10:26:03 +00:00
|
|
|
<div class="vn-descriptor">
|
|
|
|
<div class="header">
|
2018-08-20 07:01:38 +00:00
|
|
|
<a translate-attr="{title: 'Return to module index'}" ui-sref="item.index">
|
|
|
|
<vn-icon icon="chevron_left"></vn-icon>
|
|
|
|
</a>
|
|
|
|
<a translate-attr="{title: 'Preview'}" ui-sref="item.card.summary({id: $ctrl.item.id})">
|
|
|
|
<vn-icon icon="desktop_windows"></vn-icon>
|
|
|
|
</a>
|
2019-02-08 16:49:51 +00:00
|
|
|
<vspan></span>
|
2019-01-31 10:26:03 +00:00
|
|
|
</div>
|
2019-10-04 22:16:57 +00:00
|
|
|
<div class="vn-pa-md">
|
2018-08-20 07:01:38 +00:00
|
|
|
<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"
|
2018-08-21 11:38:16 +00:00
|
|
|
value="{{$ctrl.item.firstName}} {{$ctrl.item.lastName}}">
|
2018-08-20 07:01:38 +00:00
|
|
|
</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">
|
2018-09-14 12:20:58 +00:00
|
|
|
<form name="form">
|
2019-09-23 12:41:54 +00:00
|
|
|
<vn-table>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="price in $ctrl.prices">
|
|
|
|
<vn-td shrink>
|
|
|
|
<span class="ellipsize text"
|
|
|
|
title="{{::price.warehouse}}">
|
|
|
|
{{::price.warehouse}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number shrink>
|
|
|
|
<div>
|
|
|
|
<span ng-click="$ctrl.addQuantity(price)"
|
|
|
|
class="link unselectable">{{::price.grouping}}</span>
|
|
|
|
<span> x {{::price.price | currency: 'EUR': 2}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="priceKg" ng-show="::price.priceKg">
|
|
|
|
{{price.priceKg | currency: 'EUR'}}/Kg
|
|
|
|
</div>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
|
|
|
min="0"
|
2019-09-23 12:41:54 +00:00
|
|
|
name="quantity"
|
|
|
|
label="Qty."
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="price.quantity"
|
2019-09-23 12:41:54 +00:00
|
|
|
step="price.grouping"
|
|
|
|
on-change="$ctrl.validate()">
|
|
|
|
</vn-input-number>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</form>
|
|
|
|
<vn-one class="error">
|
|
|
|
<span translate>Wrong quantity</span>
|
|
|
|
</vn-one>
|
2018-08-20 07:01:38 +00:00
|
|
|
</vn-vertical>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal class="buttons-bar">
|
2019-01-31 10:26:03 +00:00
|
|
|
<div class="quicklinks" vn-one>
|
|
|
|
<a ng-if="$ctrl.quicklinks.btnOne"
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnOne.tooltip}}"
|
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnOne.state}}" target="_blank">
|
|
|
|
<vn-icon
|
|
|
|
class="mdl-button mdl-js-button mdl-button--colored"
|
|
|
|
icon="{{::$ctrl.quicklinks.btnOne.icon}}">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
|
|
|
<a ng-if="$ctrl.quicklinks.btnTwo"
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnTwo.tooltip}}"
|
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnTwo.state}}" target="_blank">
|
|
|
|
<vn-icon
|
|
|
|
class="mdl-button mdl-js-button mdl-button--colored"
|
|
|
|
icon="{{::$ctrl.quicklinks.btnTwo.icon}}">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
|
|
|
<a ng-if="$ctrl.quicklinks.btnThree"
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnThree.tooltip}}"
|
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnThree.state}}" target="_blank">
|
|
|
|
<vn-icon
|
|
|
|
class="mdl-button mdl-js-button mdl-button--colored"
|
|
|
|
icon="{{::$ctrl.quicklinks.btnThree.icon}}">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-08-20 07:01:38 +00:00
|
|
|
<vn-one>
|
2018-09-14 12:20:58 +00:00
|
|
|
<vn-submit
|
2018-08-20 07:01:38 +00:00
|
|
|
label="Save"
|
2018-09-14 12:20:58 +00:00
|
|
|
ng-click="$ctrl.submit()">
|
|
|
|
</vn-submit>
|
2018-08-20 07:01:38 +00:00
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
</div>
|
2019-01-31 10:26:03 +00:00
|
|
|
</div>
|
2018-08-20 07:01:38 +00:00
|
|
|
</vn-popover>
|