76 lines
3.0 KiB
HTML
76 lines
3.0 KiB
HTML
<default>
|
|
<vn-descriptor-content
|
|
module="item"
|
|
description="$ctrl.item.name"
|
|
descriptor="$ctrl"
|
|
class="vn-order-prices-popover">
|
|
<slot-body>
|
|
<div class="attributes">
|
|
<vn-label-value
|
|
label="Buyer"
|
|
value="{{$ctrl.item.firstName}} {{$ctrl.item.lastName}}">
|
|
</vn-label-value>
|
|
<vn-label-value
|
|
ng-repeat="tag in $ctrl.tags"
|
|
label="{{::tag.tag.name}}"
|
|
value="{{::tag.value}}">
|
|
</vn-label-value>
|
|
</div>
|
|
<div class="quicklinks">
|
|
<vn-quick-link
|
|
tooltip="Diary"
|
|
state="['item.card.diary', {id: $ctrl.id}]"
|
|
icon="icon-transaction">
|
|
</vn-quick-link>
|
|
</div>
|
|
</slot-body>
|
|
<slot-after>
|
|
<form name="form" class="prices">
|
|
<vn-table>
|
|
<vn-tbody>
|
|
<vn-tr ng-repeat="price in $ctrl.prices">
|
|
<vn-td shrink class="warehouse">
|
|
<span
|
|
class="ellipsize text"
|
|
title="{{::price.warehouse}}">
|
|
{{::price.warehouse}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td number expand>
|
|
<div>
|
|
<span
|
|
ng-click="$ctrl.addQuantity(price)"
|
|
class="link unselectable">{{::price.grouping}}</span>
|
|
<span> x {{::price.price | currency: 'EUR': 2}}</span>
|
|
</div>
|
|
<div class="price-kg" ng-show="::price.priceKg">
|
|
{{price.priceKg | currency: 'EUR'}}/Kg
|
|
</div>
|
|
</vn-td>
|
|
<vn-td shrink>
|
|
<vn-input-number
|
|
min="0"
|
|
name="quantity"
|
|
ng-model="price.quantity"
|
|
step="price.grouping"
|
|
on-change="$ctrl.validate()"
|
|
class="dense">
|
|
</vn-input-number>
|
|
</vn-td>
|
|
</vn-tr>
|
|
</vn-tbody>
|
|
</vn-table>
|
|
<div class="footer vn-pa-md">
|
|
<div class="error">
|
|
<span translate>Wrong quantity</span>
|
|
</div>
|
|
<vn-submit
|
|
label="Save"
|
|
ng-click="$ctrl.submit()">
|
|
</vn-submit>
|
|
</div>
|
|
</form>
|
|
</slot-after>
|
|
</vn-descriptor-content>
|
|
</default>
|