2018-07-16 06:00:04 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2020-03-17 10:17:50 +00:00
|
|
|
url="Clients/{{$ctrl.$params.id}}/addresses"
|
2019-09-02 07:25:18 +00:00
|
|
|
filter="$ctrl.filter"
|
2019-06-18 07:34:32 +00:00
|
|
|
limit="10"
|
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>
|
2020-06-12 08:53:33 +00:00
|
|
|
<vn-portal slot="topbar">
|
|
|
|
<vn-searchbar
|
2021-04-29 12:41:10 +00:00
|
|
|
placeholder="Search by consignee"
|
|
|
|
info="You can search by consignee id or name"
|
2020-06-12 08:53:33 +00:00
|
|
|
model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)"
|
|
|
|
auto-state="false">
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-portal>
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
|
|
|
class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-md">
|
2019-10-02 17:24:42 +00:00
|
|
|
<div
|
|
|
|
ng-repeat="address in $ctrl.addresses"
|
|
|
|
class="address">
|
|
|
|
<a
|
|
|
|
ui-sref="client.card.address.edit({addressId: {{::address.id}}})"
|
2019-10-06 18:13:24 +00:00
|
|
|
class="vn-pa-sm border-solid border-radius"
|
2019-10-02 17:24:42 +00:00
|
|
|
ng-class="{'item-disabled': !address.isActive}"
|
2021-04-29 12:41:10 +00:00
|
|
|
translate-attr="{title: 'Edit consignee'}">
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-none
|
2019-10-04 22:16:57 +00:00
|
|
|
class="vn-pr-sm"
|
2019-10-02 17:24:42 +00:00
|
|
|
ng-click="$ctrl.onStarClick($event)">
|
|
|
|
<vn-icon-button
|
|
|
|
ng-if="$ctrl.isDefaultAddress(address)"
|
|
|
|
icon="star"
|
|
|
|
translate-attr="{title: 'Default address'}">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-if="!$ctrl.isDefaultAddress(address)"
|
|
|
|
icon="star_border"
|
|
|
|
ng-click="$ctrl.setDefault(address)"
|
|
|
|
translate-attr="{title: 'Set as default'}">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-none>
|
2024-01-15 08:03:56 +00:00
|
|
|
<vn-one
|
2019-10-02 17:24:42 +00:00
|
|
|
style="overflow: hidden; min-width: 14em;">
|
2020-06-12 08:53:33 +00:00
|
|
|
<div class="ellipsize"><b>{{::address.nickname}} - #{{::address.id}}</b></div>
|
2019-10-02 17:24:42 +00:00
|
|
|
<div class="ellipsize" name="street">{{::address.street}}</div>
|
2020-08-24 05:54:30 +00:00
|
|
|
<div class="ellipsize">
|
2024-01-17 13:13:09 +00:00
|
|
|
<span ng-show="::address.postalCode">{{::address.postalCode}} -</span>
|
2024-01-15 08:03:56 +00:00
|
|
|
<span ng-show="::address.city">{{::address.city}},</span>
|
|
|
|
<span ng-show="::address.province.name">{{::address.province.name}},</span>
|
2024-04-25 10:35:21 +00:00
|
|
|
{{::address.province.country.name}}
|
2020-08-24 05:54:30 +00:00
|
|
|
</div>
|
2019-10-02 17:24:42 +00:00
|
|
|
<div class="ellipsize">
|
|
|
|
{{::address.phone}}<span ng-if="::address.mobile">, </span>
|
|
|
|
{{::address.mobile}}
|
|
|
|
</div>
|
|
|
|
<vn-check
|
|
|
|
vn-one label="Is equalizated"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="address.isEqualizated"
|
2019-10-02 17:24:42 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
2022-04-06 12:48:22 +00:00
|
|
|
<vn-check
|
|
|
|
vn-one label="Is Logiflora allowed"
|
|
|
|
ng-model="address.isLogifloraAllowed"
|
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
2019-10-02 17:24:42 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-vertical
|
|
|
|
vn-one
|
|
|
|
ng-if="address.observations.length"
|
2019-10-06 18:13:24 +00:00
|
|
|
class="vn-hide-narrow vn-px-md border-solid-left"
|
2019-10-02 17:24:42 +00:00
|
|
|
style="height: 6em; overflow: auto;">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-one ng-repeat="observation in address.observations track by $index" ng-class="{'vn-pt-sm': $index}">
|
2024-01-15 08:03:56 +00:00
|
|
|
<b>{{::observation.observationType.description}}:</b>
|
2019-10-02 17:24:42 +00:00
|
|
|
<span>{{::observation.description}}</span>
|
2019-09-02 07:25:18 +00:00
|
|
|
</vn-one>
|
2019-10-02 17:24:42 +00:00
|
|
|
</vn-vertical>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
|
|
|
<vn-float-button
|
|
|
|
vn-bind="+"
|
|
|
|
fixed-bottom-right
|
2021-04-29 12:41:10 +00:00
|
|
|
vn-tooltip="New consignee"
|
2019-10-02 17:24:42 +00:00
|
|
|
ui-sref="client.card.address.create"
|
|
|
|
icon="add"
|
|
|
|
label="Add">
|
|
|
|
</vn-float-button>
|