27 lines
913 B
HTML
27 lines
913 B
HTML
<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
|
|
ng-model="$ctrl.province.autonomyFk"
|
|
url="Autonomies"
|
|
show-field="name"
|
|
value-field="id"
|
|
label="Autonomy">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
</tpl-body>
|
|
<tpl-buttons>
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
<button id="saveProvince" response="accept" translate>Save</button>
|
|
</tpl-buttons>
|
|
</vn-dialog> |