Skip to content
Snippets Groups Projects
Commit b2d4332f authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Norwegian translation updates and opt-in to view advanced settings in

septoria humidity model form
parent b2eb9540
Branches
No related tags found
1 merge request!6202003 septoria hum form changes
No preview for this file type
This diff is collapsed.
......@@ -94,10 +94,12 @@
<span class="help-block" id="{{ form_id }}_dateGs75_validation"></span>
</div>
</fieldset>
{% trans "Show advanced settings" %} <input type="checkbox" onclick="toggleAdvancedColumns(this);" autocomplete="off"/>
</div>
<div class="col-md-3">
<fieldset>
<legend>{% trans "Threshold values for 'humid hour'" %}</legend>
<fieldset id="septoriaHumidityAdvancedColumn1" style="visibility: hidden">
<legend>{% trans "Threshold values for humid hour" %}</legend>
<div class="form-group">
<label for="thresholdRelativeHumidity">{% trans "Relative humidity" %} (%)</label>
<input type="number" name="thresholdRelativeHumidity" class="form-control" value="85"/>
......@@ -126,8 +128,7 @@
</fieldset>
</div>
<div class="col-md-3">
<fieldset>
<fieldset id="septoriaHumidityAdvancedColumn2" style="visibility: hidden">
<legend>{% trans "Other threshold values" %}</legend>
<div class="form-group">
<label for="thresholdHumidPeriodHours">{% trans "Number of consecutive 'humid hours'" %}</label>
......@@ -487,5 +488,12 @@
}
storeLocalSettings(settingsDict);
};
var toggleAdvancedColumns = function(theCheckBox){
var col1 = document.getElementById("septoriaHumidityAdvancedColumn1");
var col2 = document.getElementById("septoriaHumidityAdvancedColumn2");
col1.style.visibility = theCheckBox.checked ? "visible" : "hidden";
col2.style.visibility = theCheckBox.checked ? "visible" : "hidden";
};
</script>
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment