2019-01-21 14:21:24 +00:00
|
|
|
<div class="vn-descriptor">
|
|
|
|
<div class="header">
|
2018-03-01 15:52:35 +00:00
|
|
|
<a translate-attr="{title: 'Return to module index'}" ui-sref="item.index">
|
|
|
|
<vn-icon icon="chevron_left"></vn-icon>
|
|
|
|
</a>
|
2018-04-26 14:41:08 +00:00
|
|
|
<a translate-attr="{title: 'Preview'}" ui-sref="item.card.summary({id: $ctrl.item.id})">
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-icon icon="desktop_windows"></vn-icon>
|
2018-03-01 15:52:35 +00:00
|
|
|
</a>
|
2018-11-12 12:12:25 +00:00
|
|
|
<vn-icon-menu
|
|
|
|
vn-id="more-button"
|
|
|
|
icon="more_vert"
|
|
|
|
show-filter="false"
|
|
|
|
value-field="callback"
|
|
|
|
translate-fields="['name']"
|
|
|
|
data="$ctrl.moreOptions"
|
|
|
|
on-change="$ctrl.onMoreChange(value)"
|
|
|
|
on-open="$ctrl.onMoreOpen()">
|
|
|
|
</vn-icon-menu>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div style="position: relative" text-center>
|
2018-02-13 12:15:03 +00:00
|
|
|
<img
|
2018-06-12 15:17:40 +00:00
|
|
|
ng-src="//verdnatura.es/vn-image-data/catalog/200x200/{{$ctrl.item.image}}"
|
2018-07-17 10:05:45 +00:00
|
|
|
zoom-image="//verdnatura.es/vn-image-data/catalog/1600x900/{{$ctrl.item.image}}"
|
2018-03-09 13:20:36 +00:00
|
|
|
on-error-src/>
|
2018-06-12 15:17:40 +00:00
|
|
|
<a href="//verdnatura.es/#!form=admin/items&filter={{$ctrl.item.id}}" target="_blank">
|
2018-03-09 13:20:36 +00:00
|
|
|
<vn-float-button
|
|
|
|
icon="edit"
|
|
|
|
style="position: absolute; margin: 1em; bottom: 0; right: 0;"
|
2018-05-29 09:53:34 +00:00
|
|
|
vn-visible-by="marketing, buyer">
|
2018-03-09 13:20:36 +00:00
|
|
|
</vn-float-button>
|
2018-03-01 15:52:35 +00:00
|
|
|
</a>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
2019-02-06 10:24:29 +00:00
|
|
|
<vn-horizontal class="item-state">
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-one>
|
|
|
|
<p translate>Visible</p>
|
2019-02-18 12:31:57 +00:00
|
|
|
<p>{{$ctrl.visible | dashIfEmpty}}</p>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<p translate>Available</p>
|
2019-02-18 12:31:57 +00:00
|
|
|
<p>{{$ctrl.available | dashIfEmpty}}</p>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="body">
|
|
|
|
<div class="attributes">
|
2018-04-24 12:47:00 +00:00
|
|
|
<h5>{{$ctrl.item.id}}</h5>
|
2018-04-24 12:40:12 +00:00
|
|
|
<vn-label-value label="Name"
|
2019-02-06 09:53:12 +00:00
|
|
|
value="{{$ctrl.item.name}}">
|
2018-06-08 11:26:06 +00:00
|
|
|
</vn-label-value>
|
2018-04-17 10:19:40 +00:00
|
|
|
<vn-label-value label="Buyer"
|
2019-01-31 13:14:39 +00:00
|
|
|
value="{{$ctrl.item.itemType.worker.user.nickname}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
2018-04-26 14:41:08 +00:00
|
|
|
<vn-label-value
|
2018-08-08 12:45:29 +00:00
|
|
|
ng-repeat="tag in $ctrl.item.tags | limitTo:4"
|
|
|
|
label="{{tag.tag.name}}"
|
|
|
|
value="{{tag.value}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
2019-03-04 19:00:12 +00:00
|
|
|
<div class="icons">
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Item inactive"
|
|
|
|
icon="icon-unavailable"
|
|
|
|
ng-class="{bright: $ctrl.item.isActive == false}">
|
|
|
|
</vn-icon>
|
|
|
|
</div>
|
2019-10-18 19:36:30 +00:00
|
|
|
<vn-quick-links
|
|
|
|
links="$ctrl.quicklinks">
|
|
|
|
</vn-quick-links>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-12 12:12:25 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="regularize"
|
|
|
|
on-open="$ctrl.clearRegularizeDialog()"
|
|
|
|
on-response="$ctrl.saveRegularize(response)">
|
|
|
|
<tpl-body>
|
|
|
|
<div>
|
|
|
|
<h5 style="text-align: center">
|
2019-02-13 08:49:41 +00:00
|
|
|
<span translate>Regularize stock</span>
|
2018-11-12 12:12:25 +00:00
|
|
|
</h5>
|
|
|
|
<vn-textfield
|
2019-02-22 12:18:53 +00:00
|
|
|
label="Type the visible quantity"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.quantity"
|
2018-11-12 12:12:25 +00:00
|
|
|
name="user"
|
|
|
|
vn-id="userField"
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Warehouse"
|
|
|
|
id="warehouse"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.warehouseFk"
|
2018-11-12 12:12:25 +00:00
|
|
|
url="/api/Warehouses"
|
|
|
|
select-fields="['id', 'name']"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</div>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="CANCEL" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="ACCEPT" translate>Save</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|