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

feat: Guide users to the correct form

parent b5789191
Branches
No related tags found
1 merge request!191Add map module and Open-Meteo support
...@@ -72,7 +72,7 @@ active = Active ...@@ -72,7 +72,7 @@ active = Active
activeWeatherStations = Active weather stations activeWeatherStations = Active weather stations
addMultipleNew = Add multiple new addNewForMultipleWeatherStations=Add new for multiple weather stations
addNew = Add new addNew = Add new
...@@ -1083,3 +1083,4 @@ observationCount=Observation count ...@@ -1083,3 +1083,4 @@ observationCount=Observation count
weatherDatasource=Weather datasource weatherDatasource=Weather datasource
useWeatherStation=Use weather station useWeatherStation=Use weather station
multipleNewWarningMsg=This form is for adding the same forecast configuration to many weather stations simultaneously.
...@@ -72,9 +72,9 @@ active = Aktiv ...@@ -72,9 +72,9 @@ active = Aktiv
activeWeatherStations = Aktive v\u00e6rstasjoner activeWeatherStations = Aktive v\u00e6rstasjoner
addMultipleNew = Legg til nye addNewForMultipleWeatherStations=Legg til nytt varsel for flere v\u00e6rstasjoner samtidig
addNew = Legg til ny addNew = Legg til nytt
address = Adresse address = Adresse
...@@ -1082,3 +1082,4 @@ observationCount=Antall observasjoner ...@@ -1082,3 +1082,4 @@ observationCount=Antall observasjoner
weatherDatasource=V\u00e6rdatakilde weatherDatasource=V\u00e6rdatakilde
useWeatherStation=Bruk v\u00e6rstasjon useWeatherStation=Bruk v\u00e6rstasjon
multipleNewWarningMsg=Dette skjemaet er en snarvei for \u00e5 opprette likelydende varsel p\u00e5 flere v\u00e6rstasjoner. <a href="/forecastConfiguration?action=viewForecastConfiguration&forecastConfigurationId=-1">Klikk her</a> hvis du vil opprette bare ett varsel.
...@@ -71,7 +71,7 @@ active = \u6709\u6548\u7684 ...@@ -71,7 +71,7 @@ active = \u6709\u6548\u7684
activeWeatherStations = \u6709\u6548\u6c14\u8c61\u7ad9 activeWeatherStations = \u6709\u6548\u6c14\u8c61\u7ad9
addMultipleNew = \u6dfb\u52a0\u591a\u4e2a\u65b0\u7684 addNewForMultipleWeatherStations=\u6dfb\u52a0\u591a\u4e2a\u65b0\u7684
addNew = \u6dfb\u52a0\u65b0\u7684 addNew = \u6dfb\u52a0\u65b0\u7684
...@@ -1071,3 +1071,4 @@ weatherStationDataSourceStored=Weather (station) data source was successfully st ...@@ -1071,3 +1071,4 @@ weatherStationDataSourceStored=Weather (station) data source was successfully st
weatherStationDataSourceDeleted=The weather (station) data source was successfully deleted weatherStationDataSourceDeleted=The weather (station) data source was successfully deleted
weatherDatasource=Weather datasource weatherDatasource=Weather datasource
useWeatherStation=Use weather station useWeatherStation=Use weather station
multipleNewWarningMsg=This form is for adding the same forecast configuration to many weather stations simultaneously.
...@@ -504,10 +504,13 @@ ...@@ -504,10 +504,13 @@
<#macro page_contents> <#macro page_contents>
<div class="singleBlockContainer"> <div class="singleBlockContainer">
<p><a href="/forecastConfiguration" class="btn btn-default back" role="button">${i18nBundle.back}</a></p> <p><a href="/forecastConfiguration" class="btn btn-default back" role="button">${i18nBundle.back}</a></p>
<h1>${i18nBundle.viewForecastConfiguration}</h1> <h1>${i18nBundle.viewForecastConfiguration}</h1>
<div id="errorMsgEl" class="alert alert-danger" <#if !formValidation?has_content> style="display:none;"</#if>> <div id="errorMsgEl" class="alert alert-danger" <#if !formValidation?has_content> style="display:none;"</#if>>
<#if formValidation?has_content>${formValidation.validationMessages?replace("\n", "<br>")}</#if> <#if formValidation?has_content>${formValidation.validationMessages?replace("\n", "<br>")}</#if>
</div> </div>
<#if multipleNew>
<div class="alert alert-warning">${i18nBundle.multipleNewWarningMsg}</div>
</#if>
<#if messageKey?has_content> <#if messageKey?has_content>
<div class="alert alert-success">${i18nBundle(messageKey)}</div> <div class="alert alert-success">${i18nBundle(messageKey)}</div>
</#if> </#if>
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
</form> </form>
</div> </div>
</div> </div>
<button type="button" class="btn btn-default" onclick="window.location.href='/forecastConfiguration?action=viewForecastConfiguration&forecastConfigurationId=-1&multipleNew=true'">${i18nBundle.addMultipleNew}</button> <button type="button" class="btn btn-default" onclick="window.location.href='/forecastConfiguration?action=viewForecastConfiguration&forecastConfigurationId=-1&multipleNew=true'">${i18nBundle.addNewForMultipleWeatherStations}</button>
</#if> </#if>
<h2>${i18nBundle.privateForecasts}</h2> <h2>${i18nBundle.privateForecasts}</h2>
<div class="table-responsive"> <div class="table-responsive">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment