2018-02-20 07:53:06 +00:00
|
|
|
<mg-ajax
|
2019-10-24 22:53:53 +00:00
|
|
|
path="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>
|
2019-11-10 10:08:44 +00:00
|
|
|
<form name="form" ng-submit="watcher.submit()" ng-cloak class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Botanical"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.botanical.botanical"
|
2018-12-13 11:17:50 +00:00
|
|
|
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"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.botanical.genusFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="genera"
|
2018-03-01 22:38:14 +00:00
|
|
|
show-field="latin_genus_name"
|
|
|
|
value-field="genus_id"
|
|
|
|
label="Genus">
|
|
|
|
</vn-autocomplete>
|
2019-12-26 07:21:08 +00:00
|
|
|
<vn-autocomplete vn-one
|
2019-12-26 07:43:34 +00:00
|
|
|
label="Species"
|
2018-03-01 22:38:14 +00:00
|
|
|
initial-data="$ctrl.botanical.specie"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.botanical.specieFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="species"
|
2018-03-01 22:38:14 +00:00
|
|
|
show-field="latin_species_name"
|
|
|
|
value-field="specie_id"
|
2019-12-26 07:21:08 +00:00
|
|
|
fields="['genus_id']"
|
|
|
|
include="'genus'">
|
|
|
|
<tpl-item>
|
|
|
|
<div>{{latin_species_name}}</div>
|
|
|
|
<div class="text-caption text-secondary">
|
|
|
|
{{genus.latin_genus_name}}
|
|
|
|
</div>
|
|
|
|
</tpl-item>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2018-02-20 07:53:06 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
2019-09-18 07:41:25 +00:00
|
|
|
<vn-button label="Undo changes" ng-if="watcher.dataChanged()" ng-click="watcher.loadOriginalData()"></vn-button>
|
2018-02-20 07:53:06 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|