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

41 lines
1.4 KiB
HTML
Raw Normal View History

2018-02-20 07:53:06 +00:00
<mg-ajax
path="/item/api/ItemBotanicals/{{patch.params.id}}"
options="vnPatch">
</mg-ajax>
<vn-watcher
vn-id="watcher"
2018-02-20 10:10:54 +00:00
data="$ctrl.item.botanical"
2018-02-20 07:53:06 +00:00
form="form"
save="patch">
</vn-watcher>
<form name="form" ng-submit="watcher.submit()" ng-cloak>
<vn-card>
<vn-vertical pad-large>
<vn-title>Botanical</vn-title>
<vn-horizontal>
2018-02-20 10:10:54 +00:00
<vn-textfield vn-one label="Botanical" model="$ctrl.item.botanical.botanical"></vn-textfield>
2018-02-20 07:53:06 +00:00
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete vn-one
2018-02-20 10:10:54 +00:00
initial-data="$ctrl.item.botanical.genus"
field="$ctrl.item.botanical.genusFk"
2018-02-20 07:53:06 +00:00
url="/item/api/genera"
show-field="latin_genus_name"
value-field="genus_id"
label="Genus">
</vn-autocomplete>
<vn-autocomplete vn-one
2018-02-20 10:10:54 +00:00
initial-data="$ctrl.item.botanical.specie"
field="$ctrl.item.botanical.specieFk"
2018-02-20 07:53:06 +00:00
url="/item/api/species"
show-field="latin_species_name"
value-field="specie_id"
label="Specie">
</vn-autocomplete>
</vn-horizontal>
</vn-vertical>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
</vn-button-bar>
</form>