2020-10-14 09:33:42 +00:00
|
|
|
<vn-dialog class="edit"
|
|
|
|
vn-id="provinceDialog"
|
|
|
|
on-open="$ctrl.onOpen()"
|
|
|
|
on-accept="$ctrl.onAccept()"
|
|
|
|
message="New province">
|
|
|
|
<tpl-body>
|
|
|
|
<p translate>Please, ensure you put the correct data!</p>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield vn-one
|
|
|
|
vn-focus
|
|
|
|
ng-model="$ctrl.province.name"
|
|
|
|
label="Name">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete vn-one
|
2021-09-02 09:56:59 +00:00
|
|
|
ng-model="$ctrl.province.autonomyFk"
|
|
|
|
url="Autonomies"
|
|
|
|
show-field="name"
|
2020-10-14 09:33:42 +00:00
|
|
|
value-field="id"
|
2021-09-02 09:56:59 +00:00
|
|
|
label="Autonomy">
|
2020-10-14 09:33:42 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
2020-10-19 18:49:38 +00:00
|
|
|
<button id="saveProvince" response="accept" translate>Save</button>
|
2020-10-14 09:33:42 +00:00
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|