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

feat: Fix variable name, remove duplicate input

parent f091482f
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,6 @@ ...@@ -85,7 +85,6 @@
<div id="input-coordinates"> <div id="input-coordinates">
<input type="hidden" class="form-control" name="latitude" id="latitude" placeholder="Breddegrad" aria-label="Breddegrad"> <input type="hidden" class="form-control" name="latitude" id="latitude" placeholder="Breddegrad" aria-label="Breddegrad">
<input type="hidden" class="form-control" name="longitude" id="longitude" placeholder="Lengdegrad" aria-label="Lengdegrad"> <input type="hidden" class="form-control" name="longitude" id="longitude" placeholder="Lengdegrad" aria-label="Lengdegrad">
<input type="hidden" class="form-control" name="timezone" id="timezone" placeholder="Tidssone" aria-label="Tidssone">
<div id="gridPointInfo"></div> <div id="gridPointInfo"></div>
<button type="button" class="btn btn-primary btn-map" onclick="openCoordinatesMap()"><i class="fa fa-map-marker fa-lg"></i>&nbsp;&nbsp;{% trans "Open map" %}</button> <button type="button" class="btn btn-primary btn-map" onclick="openCoordinatesMap()"><i class="fa fa-map-marker fa-lg"></i>&nbsp;&nbsp;{% trans "Open map" %}</button>
</div> </div>
...@@ -225,7 +224,7 @@ ...@@ -225,7 +224,7 @@
"weatherDataSourceType", "weatherDataSourceType",
"latitude", "latitude",
"longitude", "longitude",
"timezone", "timeZone",
"weatherStationId", "weatherStationId",
"cropOrganismId", "cropOrganismId",
"sowingDate", "sowingDate",
...@@ -329,7 +328,7 @@ ...@@ -329,7 +328,7 @@
const getTimezoneForPoint = (latitude, longitude) => { const getTimezoneForPoint = (latitude, longitude) => {
getLocationInformation(latitude, longitude).then(locationInfo => { getLocationInformation(latitude, longitude).then(locationInfo => {
theForm["timezone"].value = locationInfo.timezone; theForm["timeZone"].value = locationInfo.timezone;
document.getElementById("gridPointInfo").innerHTML = `<b>{% trans "Location" %}</b> ${locationInfo.location}<br> document.getElementById("gridPointInfo").innerHTML = `<b>{% trans "Location" %}</b> ${locationInfo.location}<br>
<b>{% trans "Latitude" %}</b> ${locationInfo.latitude}<br> <b>{% trans "Latitude" %}</b> ${locationInfo.latitude}<br>
<b>{% trans "Longitude" %}</b> ${locationInfo.longitude}<br> <b>{% trans "Longitude" %}</b> ${locationInfo.longitude}<br>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment