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"
|
|
|
|
data="$ctrl.botanical"
|
|
|
|
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>
|
|
|
|
<vn-textfield vn-one label="Botanical" model="$ctrl.botanical.botanical"></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="Specie">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|