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

50 lines
1.7 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()"
on-response="$ctrl.onResponse(response)">
<tpl-body>
<h5 class="vn-py-sm" translate>New postcode</h5>
2019-07-08 12:07:09 +00:00
<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"
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"
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"
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>
<input type="button" response="CANCEL" translate-attr="{value: 'Cancel'}"/>
<button response="ACCEPT" translate>Save</button>
</tpl-buttons>
</vn-dialog>