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

feat: Fix table layout, remove debug output

parent deaba6de
Branches
No related tags found
No related merge requests found
...@@ -210,11 +210,9 @@ class CydiaPomonella ...@@ -210,11 +210,9 @@ class CydiaPomonella
if(this.getSelectedWeatherdataSourceType() == this.WEATHER_DATASOURCE_TYPE_WEATHERSTATION) if(this.getSelectedWeatherdataSourceType() == this.WEATHER_DATASOURCE_TYPE_WEATHERSTATION)
{ {
const selectedWeatherstationId = parseInt(this.getSelectedWeatherstation()); const selectedWeatherstationId = parseInt(this.getSelectedWeatherstation());
console.info(selectedWeatherstationId);
this.appleWeatherStations.forEach((ws)=>{ this.appleWeatherStations.forEach((ws)=>{
if(ws.id == selectedWeatherstationId) if(ws.id == selectedWeatherstationId)
{ {
console.info("Found " + ws.name);
weatherStationName = ws.name; weatherStationName = ws.name;
} }
}); });
...@@ -264,7 +262,7 @@ class CydiaPomonella ...@@ -264,7 +262,7 @@ class CydiaPomonella
renderTable(hourlyData, dailyData) renderTable(hourlyData, dailyData)
{ {
document.getElementById("weatherData").style.display="block"; document.getElementById("weatherData").style.display="table";
let tableBody = document.getElementById("tableBody"); let tableBody = document.getElementById("tableBody");
tableBody.innerHTML = ""; tableBody.innerHTML = "";
let currentDate = this.getStartDateHourly(); let currentDate = this.getStartDateHourly();
......
...@@ -177,10 +177,10 @@ Created: 2024-10-28 ...@@ -177,10 +177,10 @@ Created: 2024-10-28
<input type="radio" name="weatherdataType" id="coordinates" value="coordinates" checked onchange="displayCoordinatesInput()"> <input type="radio" name="weatherdataType" id="coordinates" value="coordinates" checked onchange="displayCoordinatesInput()">
for et spesifikt punkt (koordinater) for et spesifikt punkt (koordinater)
</label> </label>
<div id="input-coordinates" class="form-inline"> <div id="input-coordinates" class="form-inline" style="margin-top: 10px;">
<input type="text" class="form-control" name="latitude" id="latitude" onchange="runModel()" placeholder="Breddegrad" aria-label="Breddegrad"> <input type="text" class="form-control" name="latitude" id="latitude" onchange="runModel()" placeholder="Breddegrad" aria-label="Breddegrad">
<input type="text" class="form-control" name="longitude" id="longitude" onchange="runModel()" placeholder="Lengdegrad" aria-label="Lengdegrad"> <input type="text" class="form-control" name="longitude" id="longitude" onchange="runModel()" placeholder="Lengdegrad" aria-label="Lengdegrad">
<button type="button" class="btn btn-primary" onclick="openCoordinatesMap()"><i class="fa fa-map-marker fa-lg"></i> Velg i kart</button> <button type="button" class="btn btn-primary" onclick="openCoordinatesMap()" style="margin-left: 5px;"><i class="fa fa-map-marker fa-lg"></i> Velg i kart</button>
</div> </div>
<div id="coordinates-map" class="map-modal"></div> <div id="coordinates-map" class="map-modal"></div>
</div> </div>
...@@ -189,11 +189,11 @@ Created: 2024-10-28 ...@@ -189,11 +189,11 @@ Created: 2024-10-28
<input type="radio" name="weatherdataType" id="weatherstation" value="weatherstation" onchange="displayWeatherstationInput()"> <input type="radio" name="weatherdataType" id="weatherstation" value="weatherstation" onchange="displayWeatherstationInput()">
fra en værstasjon fra en værstasjon
</label> </label>
<div id="input-weatherstation" class="form-inline" style="display: none;"> <div id="input-weatherstation" class="form-inline" style="margin-top: 10px; display: none;">
<select name="weatherStationName" id="weatherStationId" class="form-control" onchange="runModel();"> <select name="weatherStationName" id="weatherStationId" class="form-control" style="width: 60%;" onchange="runModel();">
<option value="-1">-- {% trans "Select weather station" %} --</option> <option value="-1">-- {% trans "Select weather station" %} --</option>
</select> </select>
<button type="button" class="btn btn-primary" onclick="openPoiMap()"><i class="fa fa-map-marker fa-lg"></i> Velg i kart</button> <button type="button" class="btn btn-primary" onclick="openPoiMap()" style="margin-left: 5px;"><i class="fa fa-map-marker fa-lg"></i>&nbsp;&nbsp;Velg i kart</button>
</div> </div>
<div id="poi-map" class="map-modal"></div> <div id="poi-map" class="map-modal"></div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment