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 13:30:02 +00:00
|
|
|
data="$ctrl.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 13:30:02 +00:00
|
|
|
<vn-textfield vn-one label="Botanical" model="$ctrl.botanical.botanical"></vn-textfield>
|
2018-02-20 07:53:06 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete vn-one
|
2018-02-20 13:30:02 +00:00
|
|
|
initial-data="$ctrl.botanical.genus"
|
|
|
|
field="$ctrl.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 13:30:02 +00:00
|
|
|
initial-data="$ctrl.botanical.specie"
|
|
|
|
field="$ctrl.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>
|