2020-05-06 12:38:09 +00:00
|
|
|
<default>
|
2021-04-15 12:30:30 +00:00
|
|
|
<form name="form" class="prices">
|
|
|
|
<vn-table>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="price in $ctrl.prices">
|
|
|
|
<vn-td class="warehouse" expand>
|
|
|
|
<span
|
|
|
|
class="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>
|
2020-05-06 12:38:09 +00:00
|
|
|
</div>
|
2021-04-15 12:30:30 +00:00
|
|
|
<div class="price-kg" ng-show="::price.priceKg">
|
|
|
|
{{::price.priceKg | currency: 'EUR'}}/Kg
|
|
|
|
</div>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<!-- Focus first element -->
|
|
|
|
<vn-input-number ng-if="$index === 0"
|
|
|
|
min="0"
|
|
|
|
name="quantity"
|
|
|
|
ng-model="price.quantity"
|
|
|
|
step="price.grouping"
|
|
|
|
class="dense"
|
|
|
|
vn-focus>
|
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number ng-if="$index > 0"
|
|
|
|
min="0"
|
|
|
|
name="quantity"
|
|
|
|
ng-model="price.quantity"
|
|
|
|
step="price.grouping"
|
|
|
|
class="dense">
|
|
|
|
</vn-input-number>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
<div class="footer vn-pa-md">
|
|
|
|
<vn-submit
|
|
|
|
label="Add"
|
|
|
|
ng-click="$ctrl.submit()">
|
|
|
|
</vn-submit>
|
|
|
|
</div>
|
|
|
|
</form>
|
2020-05-06 12:38:09 +00:00
|
|
|
</default>
|