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"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.data.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"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.data.townFk"
|
2019-07-08 12:07:09 +00:00
|
|
|
selection="$ctrl.townSelection"
|
|
|
|
required="true">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
disabled="true"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.data.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">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
disabled="true"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.data.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>
|
|
|
|
</vn-dialog>
|