double start pick

This commit is contained in:
Joan Sanchez 2019-09-19 09:37:02 +02:00
parent 4d894365eb
commit 9ce18fbd0a
1 changed files with 46 additions and 35 deletions

View File

@ -18,15 +18,18 @@
ng-class="{ ng-class="{
'item-hightlight': $ctrl.isDefaultAddress(address), 'item-hightlight': $ctrl.isDefaultAddress(address),
'item-disabled': !address.isActive && !$ctrl.isDefaultAddress(address) 'item-disabled': !address.isActive && !$ctrl.isDefaultAddress(address)
}"> }"
<vn-horizontal style="align-items: center;"> translate-attr="{title: 'Edit address'}"
<vn-none pad-medium-h> border-radius>
<vn-none
pad-small-right
ng-click="$ctrl.onStarClick($event)">
<vn-icon-button <vn-icon-button
icon="star" icon="star"
ng-if="$ctrl.isDefaultAddress(address)"> ng-if="$ctrl.isDefaultAddress(address)">
</vn-icon-button> </vn-icon-button>
<vn-icon-button <vn-icon-button
ng-if="!address.isActive" ng-if="!address.isActive && !$ctrl.isDefaultAddress(address)"
icon="star_border" icon="star_border"
vn-tooltip="Active first to set as default"> vn-tooltip="Active first to set as default">
</vn-icon-button> </vn-icon-button>
@ -37,22 +40,30 @@
ng-click="$ctrl.setDefault(address)"> ng-click="$ctrl.setDefault(address)">
</vn-icon-button> </vn-icon-button>
</vn-none> </vn-none>
<vn-one border-solid-right> <vn-one
<vn-horizontal> style="overflow: hidden; min-width: 14em;">
<vn-one> <div class="ellipsize"><b>{{::address.nickname}}</b></div>
<div><b>{{::address.nickname}}</b></div> <div class="ellipsize" name="street">{{::address.street}}</div>
<div name="street">{{::address.street}}</div> <div class="ellipsize">{{::address.city}}, {{::address.province.name}}</div>
<div>{{::address.city}}, {{::address.province}}</div> <div class="ellipsize">
<div>{{::address.phone}}, {{::address.mobile}}</div> {{::address.phone}}<span ng-if="::address.mobile">, </span>
</vn-one> {{::address.mobile}}
<vn-one> </div>
<vn-check <vn-check
vn-one label="Is equalizated" vn-one label="Is equalizated"
field="address.isEqualizated" field="address.isEqualizated"
disabled="true"> disabled="true">
</vn-check> </vn-check>
</vn-one> </vn-one>
</vn-horizontal> <vn-vertical
vn-one
ng-if="address.observations.length"
border-solid-left
pad-medium-h
style="height: 6em; overflow: auto;">
<vn-one ng-repeat="observation in address.observations track by $index" ng-class="{'pad-small-top': $index}">
<b>{{::observation.observationType.description}}:</b>
<span>{{::observation.description}}</span>
</vn-one> </vn-one>
<vn-vertical vn-one pad-medium-h> <vn-vertical vn-one pad-medium-h>
<vn-one ng-repeat="observation in address.observations track by $index" ng-class="{'pad-small-top': $index}"> <vn-one ng-repeat="observation in address.observations track by $index" ng-class="{'pad-small-top': $index}">