27 lines
878 B
HTML
27 lines
878 B
HTML
|
<vn-dialog class="edit"
|
||
|
vn-id="cityDialog"
|
||
|
on-open="$ctrl.onOpen()"
|
||
|
on-accept="$ctrl.onAccept()"
|
||
|
message="New city">
|
||
|
<tpl-body>
|
||
|
<p translate>Please, ensure you put the correct data!</p>
|
||
|
<vn-horizontal>
|
||
|
<vn-textfield vn-one
|
||
|
vn-focus
|
||
|
ng-model="$ctrl.city.name"
|
||
|
label="Name">
|
||
|
</vn-textfield>
|
||
|
<vn-autocomplete vn-one
|
||
|
ng-model="$ctrl.city.provinceFk"
|
||
|
url="Provinces"
|
||
|
show-field="name"
|
||
|
value-field="id"
|
||
|
label="Province">
|
||
|
</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>
|