salix/client/item/src/botanical/index.html

47 lines
1.4 KiB
HTML
Raw Normal View History

2018-02-20 07:53:06 +00:00
<mg-ajax
2018-02-21 10:10:00 +00:00
path="/item/api/ItemBotanicals"
2018-02-20 07:53:06 +00:00
options="vnPatch">
</mg-ajax>
<vn-watcher
vn-id="watcher"
2018-02-20 13:30:02 +00:00
data="$ctrl.botanical"
2018-02-21 10:10:00 +00:00
id-field="itemFk"
2018-02-20 07:53:06 +00:00
form="form"
save="patch">
</vn-watcher>
<form name="form" ng-submit="watcher.submit()" ng-cloak>
2018-03-01 22:38:14 +00:00
<vn-card pad-large>
<vn-title>Botanical</vn-title>
<vn-horizontal>
<vn-textfield
vn-one
label="Botanical"
2018-12-13 11:17:50 +00:00
model="$ctrl.botanical.botanical"
vn-focus>
2018-03-01 22:38:14 +00:00
</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>
2018-02-20 07:53:06 +00:00
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
</vn-button-bar>
</form>