27 lines
895 B
HTML
27 lines
895 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.countryFk"
|
|
url="Countries"
|
|
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> |