salix/modules/client/front/postcode/index.html

77 lines
2.6 KiB
HTML
Raw Normal View History

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"
ng-model="$ctrl.location.code"
2019-07-08 12:07:09 +00:00
required="true">
</vn-textfield>
<vn-autocomplete vn-one
label="City"
url="Towns/location"
2019-07-08 12:07:09 +00:00
show-field="name"
value-field="id"
ng-model="$ctrl.location.townFk"
2019-07-08 12:07:09 +00:00
selection="$ctrl.townSelection"
required="true">
<append>
<vn-icon-button
icon="add_circle"
vn-tooltip="New city"
ng-click="city.open($event)"
2023-06-12 12:58:28 +00:00
vn-acl="deliveryAssist"
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
ng-model="$ctrl.location.provinceFk"
url="Provinces"
2019-07-08 12:07:09 +00:00
show-field="name"
value-field="id"
label="Province">
<append>
<vn-icon-button
icon="add_circle"
vn-tooltip="New province"
ng-click="province.open($event)"
2023-06-12 12:58:28 +00:00
vn-acl="deliveryAssist"
vn-acl-action="remove">
</vn-icon-button>
</append>
2019-07-08 12:07:09 +00:00
</vn-autocomplete>
<vn-autocomplete vn-one
ng-model="$ctrl.location.countryFk"
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'}"/>
2020-10-19 18:49:38 +00:00
<button id= "savePostcode" response="accept" translate>Save</button>
2019-07-08 12:07:09 +00:00
</tpl-buttons>
</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)">
2023-06-12 12:58:28 +00:00
</vn-geo-city>