39 lines
1.7 KiB
HTML
39 lines
1.7 KiB
HTML
<vn-card margin-medium-v 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">
|
|
<vn-icon icon="desktop_windows"></vn-icon>
|
|
</a>
|
|
</vn-horizontal>
|
|
<vn-vertical>
|
|
<vn-auto style="position: relative" text-center>
|
|
<img
|
|
ng-src="http://verdnatura.es/vn-image-data/catalog/200x200/{{::$ctrl.item.image}}"
|
|
zoom-image="http://verdnatura.es/vn-image-data/catalog/900x900/{{::$ctrl.item.image}}"
|
|
on-error-src/>
|
|
<a href="https://www.verdnatura.es/#!form=admin/items&filter={{::$ctrl.item.id}}" target="_blank">
|
|
<vn-float-button
|
|
icon="edit"
|
|
style="position: absolute; margin: 1em; bottom: 0; right: 0;"
|
|
vn-visible-by="administrative, salesAssistant">
|
|
</vn-float-button>
|
|
</a>
|
|
</vn-auto>
|
|
<vn-auto pad-medium>
|
|
<h6>{{$ctrl.item.id}}</h6>
|
|
<vn-label-value label="Name"
|
|
value="{{$ctrl.item.name}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Buyer"
|
|
value="{{$ctrl.item.itemType.worker.firstName}} {{$ctrl.item.itemType.worker.name}}">
|
|
</vn-label-value>
|
|
<vn-label-value ng-repeat="itemTag in $ctrl.itemTags | limitTo:4" label="{{$ctrl.tags[itemTag.tagFk].name}}"
|
|
value="{{itemTag.value}}">
|
|
</vn-label-value>
|
|
</vn-auto>
|
|
</vn-vertical>
|
|
</vn-card>
|