2018-07-16 06:00:04 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/client/api/Addresses"
|
|
|
|
filter="::$ctrl.filter"
|
|
|
|
link="{clientFk: $ctrl.$stateParams.id}"
|
2018-12-19 14:59:35 +00:00
|
|
|
data="addresses"
|
|
|
|
auto-load="true">
|
2018-07-16 06:00:04 +00:00
|
|
|
</vn-crud-model>
|
2018-03-23 10:33:54 +00:00
|
|
|
<vn-vertical>
|
2018-12-14 11:56:21 +00:00
|
|
|
<vn-card pad-large compact>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-title vn-one>Addresses</vn-title>
|
2018-07-16 06:00:04 +00:00
|
|
|
<vn-horizontal ng-repeat="address in addresses" class="pad-medium-top" style="align-items: center;">
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-one border-radius class="pad-small border-solid"
|
2018-06-04 09:57:27 +00:00
|
|
|
ng-class="{'bg-main': address.isDefaultAddress,'bg-opacity-item': !address.isActive && !address.isDefaultAddress}">
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-horizontal style="align-items: center;">
|
2018-05-14 10:54:17 +00:00
|
|
|
<vn-none pad-medium-h>
|
2018-10-11 07:41:30 +00:00
|
|
|
<vn-icon-button icon="star"
|
2018-05-22 09:44:24 +00:00
|
|
|
ng-if="address.isDefaultAddress">
|
2018-10-11 07:41:30 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button icon="star_border"
|
2018-05-22 09:44:24 +00:00
|
|
|
ng-if="!address.isActive"
|
|
|
|
vn-tooltip="Active first to set as default">
|
2018-10-11 07:41:30 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button orange
|
|
|
|
icon="star_border"
|
2018-05-22 09:44:24 +00:00
|
|
|
vn-tooltip="Set as default"
|
2018-10-11 07:41:30 +00:00
|
|
|
ng-click="$ctrl.setDefault(address)"
|
|
|
|
ng-if="address.isActive && !address.isDefaultAddress">
|
|
|
|
</vn-icon-button>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-none>
|
|
|
|
<vn-one border-solid-right>
|
2018-05-29 11:36:41 +00:00
|
|
|
<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>
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
2018-03-01 22:38:14 +00:00
|
|
|
</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>
|
2017-11-21 11:44:28 +00:00
|
|
|
</vn-one>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-vertical>
|
2018-07-25 13:14:03 +00:00
|
|
|
<a pad-medium-h vn-tooltip="Edit address"
|
|
|
|
vn-auto ui-sref="client.card.address.edit({addressId: {{::address.id}}})">
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-icon-button icon="edit"></vn-icon-button>
|
|
|
|
</a>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
2017-01-31 13:13:06 +00:00
|
|
|
</vn-card>
|
|
|
|
<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>
|
|
|
|
</vn-vertical>
|