Skip to content
Snippets Groups Projects
Commit 38813773 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

fix: Remove dropdown for crop category for already persisted timeseries [VIPSUTV-1067]

parent 8bc084b2
No related branches found
No related tags found
No related merge requests found
...@@ -420,14 +420,16 @@ ...@@ -420,14 +420,16 @@
<input type="hidden" name="locationPointOfInterestId" value="${observationTimeSeries.locationPointOfInterestId}"> <input type="hidden" name="locationPointOfInterestId" value="${observationTimeSeries.locationPointOfInterestId}">
<input type="hidden" name="locationVisibility" value="${locationVisibilityFormValue}"> <input type="hidden" name="locationVisibility" value="${locationVisibilityFormValue}">
<#else> <#else>
<div class="form-group"> <#if ! observationTimeSeries.organism?has_content>
<label for="cropCategoryIdList">${i18nBundle.listSelectedCropCategoryOnTop}</label> <div class="form-group">
<select class="form-control" id="cropCategoryIdList" name="cropCategoryId" <label for="cropCategoryIdList">${i18nBundle.listSelectedCropCategoryOnTop}</label>
onchange="filterCrops(this.options[this.options.selectedIndex].value);"> <select class="form-control" id="cropCategoryIdList" name="cropCategoryId"
<option value="-1">${i18nBundle.pleaseSelect} ${i18nBundle.cropCategory?lower_case}</option> onchange="filterCrops(this.options[this.options.selectedIndex].value);">
<!-- Options added by JavaScript function renderCropCategories() --> <option value="-1">${i18nBundle.pleaseSelect} ${i18nBundle.cropCategory?lower_case}</option>
</select> <!-- Options added by JavaScript function renderCropCategories() -->
</div> </select>
</div>
</#if>
<div class="form-group"> <div class="form-group">
<label for="cropOrganismIdList">${i18nBundle.cropOrganismId}</label> <label for="cropOrganismIdList">${i18nBundle.cropOrganismId}</label>
<select class="form-control" id="cropOrganismIdList" name="cropOrganismId" onblur="validateField(this);" onchange="updateCropPests();"> <select class="form-control" id="cropOrganismIdList" name="cropOrganismId" onblur="validateField(this);" onchange="updateCropPests();">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment