2018-07-16 06:00:04 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-06-18 07:34:32 +00:00
|
|
|
url="/client/api/Addresses/filter"
|
|
|
|
limit="10"
|
2018-07-16 06:00:04 +00:00
|
|
|
link="{clientFk: $ctrl.$stateParams.id}"
|
2019-02-28 07:55:34 +00:00
|
|
|
data="$ctrl.addresses"
|
2019-07-08 12:07:09 +00:00
|
|
|
auto-load="true">
|
2018-07-16 06:00:04 +00:00
|
|
|
</vn-crud-model>
|
2019-01-20 17:48:03 +00:00
|
|
|
<div compact>
|
2019-07-08 12:07:09 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-horizontal
|
|
|
|
ng-repeat="address in $ctrl.addresses"
|
|
|
|
class="pad-medium-top"
|
|
|
|
style="align-items: center;">
|
|
|
|
<vn-one
|
|
|
|
border-radius
|
|
|
|
class="pad-small border-solid"
|
|
|
|
ng-class="{
|
|
|
|
'item-hightlight': $ctrl.isDefaultAddress(address),
|
|
|
|
'item-disabled': !address.isActive && !$ctrl.isDefaultAddress(address)
|
|
|
|
}">
|
|
|
|
<vn-horizontal style="align-items: center;">
|
|
|
|
<vn-none pad-medium-h>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="star"
|
|
|
|
ng-if="$ctrl.isDefaultAddress(address)">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-if="!address.isActive"
|
|
|
|
icon="star_border"
|
|
|
|
vn-tooltip="Active first to set as default">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-if="address.isActive && !$ctrl.isDefaultAddress(address)"
|
|
|
|
icon="star_border"
|
|
|
|
vn-tooltip="Set as default"
|
|
|
|
ng-click="$ctrl.setDefault(address)">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-none>
|
|
|
|
<vn-one border-solid-right>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-one>
|
|
|
|
<div><b>{{::address.nickname}}</b></div>
|
|
|
|
<div name="street">{{::address.street}}</div>
|
|
|
|
<div>{{::address.city}}, {{::address.province}}</div>
|
|
|
|
<div>{{::address.phone}}, {{::address.mobile}}</div>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<vn-check
|
|
|
|
vn-one label="Is equalizated"
|
|
|
|
field="address.isEqualizated"
|
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
2019-06-18 07:34:32 +00:00
|
|
|
</vn-one>
|
2019-07-08 12:07:09 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
</vn-one>
|
|
|
|
<vn-vertical vn-one pad-medium-h>
|
|
|
|
<vn-one ng-repeat="observation in address.observations track by $index" ng-class="{'pad-small-top': $index}">
|
|
|
|
<b margin-medium-right>{{::observation.observationType.description}}:</b>
|
|
|
|
<span>{{::observation.description}}</span>
|
|
|
|
</vn-one>
|
|
|
|
</vn-vertical>
|
|
|
|
<a pad-medium-h vn-tooltip="Edit address"
|
|
|
|
vn-auto ui-sref="client.card.address.edit({addressId: {{::address.id}}})">
|
|
|
|
<vn-icon-button icon="edit"></vn-icon-button>
|
|
|
|
</a>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
2017-01-31 13:13:06 +00:00
|
|
|
<vn-float-button
|
2018-04-23 09:17:30 +00:00
|
|
|
vn-bind="+"
|
2017-01-31 13:13:06 +00:00
|
|
|
fixed-bottom-right
|
2018-07-25 13:14:03 +00:00
|
|
|
vn-tooltip="New address"
|
2018-05-23 12:26:51 +00:00
|
|
|
ui-sref="client.card.address.create"
|
2017-06-07 06:39:40 +00:00
|
|
|
icon="add"
|
|
|
|
label="Add">
|
2017-01-31 13:13:06 +00:00
|
|
|
</vn-float-button>
|
2019-06-18 07:34:32 +00:00
|
|
|
<vn-pagination model="model"></vn-pagination>
|
2019-01-20 17:48:03 +00:00
|
|
|
</div>
|