2019-07-08 12:07:09 +00:00
|
|
|
<vn-dialog class="edit"
|
|
|
|
vn-id="postcodeDialog"
|
|
|
|
on-open="$ctrl.onOpen()"
|
2020-05-06 12:38:09 +00:00
|
|
|
on-accept="$ctrl.onAccept()"
|
|
|
|
message="New postcode">
|
2019-07-08 12:07:09 +00:00
|
|
|
<tpl-body>
|
|
|
|
<p translate>Please, ensure you put the correct data!</p>
|
|
|
|
<vn-horizontal>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
vn-focus
|
|
|
|
vn-id="postcode"
|
2019-07-08 12:07:09 +00:00
|
|
|
label="Postcode"
|
2020-10-14 09:33:42 +00:00
|
|
|
ng-model="$ctrl.location.code"
|
2019-07-08 12:07:09 +00:00
|
|
|
required="true">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
label="City"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Towns/location"
|
2019-07-08 12:07:09 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2020-10-14 09:33:42 +00:00
|
|
|
ng-model="$ctrl.location.townFk"
|
2019-07-08 12:07:09 +00:00
|
|
|
selection="$ctrl.townSelection"
|
|
|
|
required="true">
|
2020-10-14 09:33:42 +00:00
|
|
|
<append>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="add_circle"
|
|
|
|
vn-tooltip="New city"
|
|
|
|
ng-click="city.open($event)"
|
|
|
|
vn-acl="deliveryBoss"
|
|
|
|
vn-acl-action="remove">
|
|
|
|
</vn-icon-button>
|
|
|
|
</append>
|
2019-07-08 12:07:09 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete vn-one
|
2020-10-14 09:33:42 +00:00
|
|
|
ng-model="$ctrl.location.provinceFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Provinces"
|
2019-07-08 12:07:09 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Province">
|
2020-10-14 09:33:42 +00:00
|
|
|
<append>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="add_circle"
|
|
|
|
vn-tooltip="New province"
|
|
|
|
ng-click="province.open($event)"
|
|
|
|
vn-acl="deliveryBoss"
|
|
|
|
vn-acl-action="remove">
|
|
|
|
</vn-icon-button>
|
|
|
|
</append>
|
2019-07-08 12:07:09 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete vn-one
|
2020-10-14 09:33:42 +00:00
|
|
|
ng-model="$ctrl.location.countryFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Countries"
|
2019-07-08 12:07:09 +00:00
|
|
|
show-field="country"
|
|
|
|
value-field="id"
|
|
|
|
label="Country">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
2019-10-30 15:57:14 +00:00
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Save</button>
|
2019-07-08 12:07:09 +00:00
|
|
|
</tpl-buttons>
|
2020-10-14 09:33:42 +00:00
|
|
|
</vn-dialog>
|
|
|
|
<!-- New province dialog -->
|
|
|
|
<vn-geo-province
|
|
|
|
vn-id="province"
|
|
|
|
on-response="$ctrl.onProvinceResponse($response)">
|
|
|
|
</vn-geo-province>
|
|
|
|
<!-- New city dialog -->
|
|
|
|
<vn-geo-city
|
|
|
|
vn-id="city"
|
|
|
|
on-response="$ctrl.onCityResponse($response)">
|
|
|
|
</vn-geo-city>
|