salix/modules/item/front/botanical/index.html

46 lines
1.3 KiB
HTML

<mg-ajax
path="/item/api/ItemBotanicals"
options="vnPatch">
</mg-ajax>
<vn-watcher
vn-id="watcher"
data="$ctrl.botanical"
id-field="itemFk"
form="form"
save="patch">
</vn-watcher>
<form name="form" ng-submit="watcher.submit()" ng-cloak compact>
<vn-card pad-large>
<vn-horizontal>
<vn-textfield
vn-one
label="Botanical"
model="$ctrl.botanical.botanical"
vn-focus>
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
vn-one
initial-data="$ctrl.botanical.genus"
field="$ctrl.botanical.genusFk"
url="/item/api/genera"
show-field="latin_genus_name"
value-field="genus_id"
label="Genus">
</vn-autocomplete>
<vn-autocomplete
vn-one
initial-data="$ctrl.botanical.specie"
field="$ctrl.botanical.specieFk"
url="/item/api/species"
show-field="latin_species_name"
value-field="specie_id"
label="Species">
</vn-autocomplete>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
</vn-button-bar>
</form>