Tarea #278 Refactor descriptor item CR Carlos

This commit is contained in:
gerard 2018-04-24 14:40:12 +02:00
parent e11c0936bc
commit 709b06e4ea
3 changed files with 10 additions and 5 deletions

View File

@ -9,7 +9,7 @@
</a>
</vn-horizontal>
<vn-vertical>
<vn-auto style="position: relative" pad-medium text-center>
<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}}"
@ -23,10 +23,10 @@
</a>
</vn-auto>
<vn-auto pad-medium>
<h6>{{$ctrl.item.name}}</h6>
<vn-label-value label="Id"
value="{{$ctrl.item.id}}">
</vn-label-value>
<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>

View File

@ -1,4 +1,5 @@
import ngModule from '../module';
import './style.scss';
ngModule.component('vnItemDescriptor', {
template: require('./descriptor.html'),

View File

@ -0,0 +1,4 @@
img[ng-src] {
height: 100%;
width: 100%;
}