diff --git a/VIPSWeb/static/css/vipsweb.css b/VIPSWeb/static/css/vipsweb.css index 859cf7a763ec1bbc86596fee6c1d106b465986e0..8d7ca6aa8b35d1660f8ec7dff406918f83c6e9fa 100755 --- a/VIPSWeb/static/css/vipsweb.css +++ b/VIPSWeb/static/css/vipsweb.css @@ -879,6 +879,11 @@ button.btn-primary { color: white; } +button.btn-info { + background-color: #79bd8b; + color: white; +} + table.table { border-collapse: collapse; } diff --git a/cydiapomonella/locale/bg/LC_MESSAGES/django.po b/cydiapomonella/locale/bg/LC_MESSAGES/django.po index 383586e0d469c9665e7eba2d11e123524fd537a0..26d8afe36826b742d513a907eeb537d6e389965b 100644 --- a/cydiapomonella/locale/bg/LC_MESSAGES/django.po +++ b/cydiapomonella/locale/bg/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-31 12:29+0100\n" +"POT-Creation-Date: 2024-10-31 14:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -23,77 +23,77 @@ msgstr "" msgid "Cydia pomonella" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:85 +#: cydiapomonella/templates/cydiapomonella/index.html:141 msgid "Location name" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:86 +#: cydiapomonella/templates/cydiapomonella/index.html:142 msgid "Latitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:87 +#: cydiapomonella/templates/cydiapomonella/index.html:143 msgid "Longitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:88 +#: cydiapomonella/templates/cydiapomonella/index.html:144 msgid "Timezone" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:169 +#: cydiapomonella/templates/cydiapomonella/index.html:225 #: cydiapomonella/templates/cydiapomonella/index_old.html:718 msgid "Calculate the risk of attack by the coddling moth" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "" "Check night temps and rainfall for weather stations and locations in regions " "with coddling moth." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "Read more" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:171 +#: cydiapomonella/templates/cydiapomonella/index.html:227 msgid "" "If all criteria for oviposition are met, calculate heat sum from start date " "below." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:178 +#: cydiapomonella/templates/cydiapomonella/index.html:234 #: cydiapomonella/templates/cydiapomonella/index_old.html:727 msgid "No weather data available from the selected weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:184 +#: cydiapomonella/templates/cydiapomonella/index.html:240 msgid "I want to use weather data" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:188 +#: cydiapomonella/templates/cydiapomonella/index.html:244 msgid "for a specific location (coordinates)" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:195 -#: cydiapomonella/templates/cydiapomonella/index.html:208 +#: cydiapomonella/templates/cydiapomonella/index.html:251 +#: cydiapomonella/templates/cydiapomonella/index.html:264 msgid "Select in map" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:202 +#: cydiapomonella/templates/cydiapomonella/index.html:258 msgid "from a weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:206 +#: cydiapomonella/templates/cydiapomonella/index.html:262 #: cydiapomonella/templates/cydiapomonella/index_old.html:733 msgid "Select weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:220 +#: cydiapomonella/templates/cydiapomonella/index.html:276 msgid "I want to get night temperatures and rainfall back in time:" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:222 -#: cydiapomonella/templates/cydiapomonella/index.html:225 -#: cydiapomonella/templates/cydiapomonella/index.html:228 +#: cydiapomonella/templates/cydiapomonella/index.html:278 +#: cydiapomonella/templates/cydiapomonella/index.html:281 +#: cydiapomonella/templates/cydiapomonella/index.html:284 #: cydiapomonella/templates/cydiapomonella/index_old.html:765 #: cydiapomonella/templates/cydiapomonella/index_old.html:768 #: cydiapomonella/templates/cydiapomonella/index_old.html:771 @@ -101,16 +101,20 @@ msgstr "" msgid "days" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:240 +#: cydiapomonella/templates/cydiapomonella/index.html:292 +msgid "Please wait..." +msgstr "" + +#: cydiapomonella/templates/cydiapomonella/index.html:301 #: cydiapomonella/templates/cydiapomonella/index_old.html:782 msgid "Date" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:241 -#: cydiapomonella/templates/cydiapomonella/index.html:242 -#: cydiapomonella/templates/cydiapomonella/index.html:243 -#: cydiapomonella/templates/cydiapomonella/index.html:244 -#: cydiapomonella/templates/cydiapomonella/index.html:245 +#: cydiapomonella/templates/cydiapomonella/index.html:302 +#: cydiapomonella/templates/cydiapomonella/index.html:303 +#: cydiapomonella/templates/cydiapomonella/index.html:304 +#: cydiapomonella/templates/cydiapomonella/index.html:305 +#: cydiapomonella/templates/cydiapomonella/index.html:306 #: cydiapomonella/templates/cydiapomonella/index_old.html:783 #: cydiapomonella/templates/cydiapomonella/index_old.html:784 #: cydiapomonella/templates/cydiapomonella/index_old.html:785 @@ -119,17 +123,17 @@ msgstr "" msgid "Temp at" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:246 +#: cydiapomonella/templates/cydiapomonella/index.html:307 #: cydiapomonella/templates/cydiapomonella/index_old.html:788 msgid "Daily rainfall" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:258 +#: cydiapomonella/templates/cydiapomonella/index.html:319 #: cydiapomonella/templates/cydiapomonella/index_old.html:803 msgid "Heat sum" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:261 +#: cydiapomonella/templates/cydiapomonella/index.html:322 #: cydiapomonella/templates/cydiapomonella/index_old.html:807 msgid "Calculate heat sum from date" msgstr "" diff --git a/cydiapomonella/locale/bs/LC_MESSAGES/django.po b/cydiapomonella/locale/bs/LC_MESSAGES/django.po index 435b2265277d01f783e689d887dc289e600d2bdb..807177a933f34c5a91573cff70a8c282a0b65735 100644 --- a/cydiapomonella/locale/bs/LC_MESSAGES/django.po +++ b/cydiapomonella/locale/bs/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-31 12:29+0100\n" +"POT-Creation-Date: 2024-10-31 14:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -24,77 +24,77 @@ msgstr "" msgid "Cydia pomonella" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:85 +#: cydiapomonella/templates/cydiapomonella/index.html:141 msgid "Location name" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:86 +#: cydiapomonella/templates/cydiapomonella/index.html:142 msgid "Latitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:87 +#: cydiapomonella/templates/cydiapomonella/index.html:143 msgid "Longitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:88 +#: cydiapomonella/templates/cydiapomonella/index.html:144 msgid "Timezone" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:169 +#: cydiapomonella/templates/cydiapomonella/index.html:225 #: cydiapomonella/templates/cydiapomonella/index_old.html:718 msgid "Calculate the risk of attack by the coddling moth" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "" "Check night temps and rainfall for weather stations and locations in regions " "with coddling moth." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "Read more" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:171 +#: cydiapomonella/templates/cydiapomonella/index.html:227 msgid "" "If all criteria for oviposition are met, calculate heat sum from start date " "below." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:178 +#: cydiapomonella/templates/cydiapomonella/index.html:234 #: cydiapomonella/templates/cydiapomonella/index_old.html:727 msgid "No weather data available from the selected weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:184 +#: cydiapomonella/templates/cydiapomonella/index.html:240 msgid "I want to use weather data" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:188 +#: cydiapomonella/templates/cydiapomonella/index.html:244 msgid "for a specific location (coordinates)" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:195 -#: cydiapomonella/templates/cydiapomonella/index.html:208 +#: cydiapomonella/templates/cydiapomonella/index.html:251 +#: cydiapomonella/templates/cydiapomonella/index.html:264 msgid "Select in map" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:202 +#: cydiapomonella/templates/cydiapomonella/index.html:258 msgid "from a weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:206 +#: cydiapomonella/templates/cydiapomonella/index.html:262 #: cydiapomonella/templates/cydiapomonella/index_old.html:733 msgid "Select weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:220 +#: cydiapomonella/templates/cydiapomonella/index.html:276 msgid "I want to get night temperatures and rainfall back in time:" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:222 -#: cydiapomonella/templates/cydiapomonella/index.html:225 -#: cydiapomonella/templates/cydiapomonella/index.html:228 +#: cydiapomonella/templates/cydiapomonella/index.html:278 +#: cydiapomonella/templates/cydiapomonella/index.html:281 +#: cydiapomonella/templates/cydiapomonella/index.html:284 #: cydiapomonella/templates/cydiapomonella/index_old.html:765 #: cydiapomonella/templates/cydiapomonella/index_old.html:768 #: cydiapomonella/templates/cydiapomonella/index_old.html:771 @@ -102,16 +102,20 @@ msgstr "" msgid "days" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:240 +#: cydiapomonella/templates/cydiapomonella/index.html:292 +msgid "Please wait..." +msgstr "" + +#: cydiapomonella/templates/cydiapomonella/index.html:301 #: cydiapomonella/templates/cydiapomonella/index_old.html:782 msgid "Date" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:241 -#: cydiapomonella/templates/cydiapomonella/index.html:242 -#: cydiapomonella/templates/cydiapomonella/index.html:243 -#: cydiapomonella/templates/cydiapomonella/index.html:244 -#: cydiapomonella/templates/cydiapomonella/index.html:245 +#: cydiapomonella/templates/cydiapomonella/index.html:302 +#: cydiapomonella/templates/cydiapomonella/index.html:303 +#: cydiapomonella/templates/cydiapomonella/index.html:304 +#: cydiapomonella/templates/cydiapomonella/index.html:305 +#: cydiapomonella/templates/cydiapomonella/index.html:306 #: cydiapomonella/templates/cydiapomonella/index_old.html:783 #: cydiapomonella/templates/cydiapomonella/index_old.html:784 #: cydiapomonella/templates/cydiapomonella/index_old.html:785 @@ -120,17 +124,17 @@ msgstr "" msgid "Temp at" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:246 +#: cydiapomonella/templates/cydiapomonella/index.html:307 #: cydiapomonella/templates/cydiapomonella/index_old.html:788 msgid "Daily rainfall" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:258 +#: cydiapomonella/templates/cydiapomonella/index.html:319 #: cydiapomonella/templates/cydiapomonella/index_old.html:803 msgid "Heat sum" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:261 +#: cydiapomonella/templates/cydiapomonella/index.html:322 #: cydiapomonella/templates/cydiapomonella/index_old.html:807 msgid "Calculate heat sum from date" msgstr "" diff --git a/cydiapomonella/locale/de/LC_MESSAGES/django.po b/cydiapomonella/locale/de/LC_MESSAGES/django.po index 383586e0d469c9665e7eba2d11e123524fd537a0..26d8afe36826b742d513a907eeb537d6e389965b 100644 --- a/cydiapomonella/locale/de/LC_MESSAGES/django.po +++ b/cydiapomonella/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-31 12:29+0100\n" +"POT-Creation-Date: 2024-10-31 14:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -23,77 +23,77 @@ msgstr "" msgid "Cydia pomonella" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:85 +#: cydiapomonella/templates/cydiapomonella/index.html:141 msgid "Location name" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:86 +#: cydiapomonella/templates/cydiapomonella/index.html:142 msgid "Latitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:87 +#: cydiapomonella/templates/cydiapomonella/index.html:143 msgid "Longitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:88 +#: cydiapomonella/templates/cydiapomonella/index.html:144 msgid "Timezone" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:169 +#: cydiapomonella/templates/cydiapomonella/index.html:225 #: cydiapomonella/templates/cydiapomonella/index_old.html:718 msgid "Calculate the risk of attack by the coddling moth" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "" "Check night temps and rainfall for weather stations and locations in regions " "with coddling moth." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "Read more" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:171 +#: cydiapomonella/templates/cydiapomonella/index.html:227 msgid "" "If all criteria for oviposition are met, calculate heat sum from start date " "below." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:178 +#: cydiapomonella/templates/cydiapomonella/index.html:234 #: cydiapomonella/templates/cydiapomonella/index_old.html:727 msgid "No weather data available from the selected weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:184 +#: cydiapomonella/templates/cydiapomonella/index.html:240 msgid "I want to use weather data" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:188 +#: cydiapomonella/templates/cydiapomonella/index.html:244 msgid "for a specific location (coordinates)" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:195 -#: cydiapomonella/templates/cydiapomonella/index.html:208 +#: cydiapomonella/templates/cydiapomonella/index.html:251 +#: cydiapomonella/templates/cydiapomonella/index.html:264 msgid "Select in map" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:202 +#: cydiapomonella/templates/cydiapomonella/index.html:258 msgid "from a weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:206 +#: cydiapomonella/templates/cydiapomonella/index.html:262 #: cydiapomonella/templates/cydiapomonella/index_old.html:733 msgid "Select weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:220 +#: cydiapomonella/templates/cydiapomonella/index.html:276 msgid "I want to get night temperatures and rainfall back in time:" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:222 -#: cydiapomonella/templates/cydiapomonella/index.html:225 -#: cydiapomonella/templates/cydiapomonella/index.html:228 +#: cydiapomonella/templates/cydiapomonella/index.html:278 +#: cydiapomonella/templates/cydiapomonella/index.html:281 +#: cydiapomonella/templates/cydiapomonella/index.html:284 #: cydiapomonella/templates/cydiapomonella/index_old.html:765 #: cydiapomonella/templates/cydiapomonella/index_old.html:768 #: cydiapomonella/templates/cydiapomonella/index_old.html:771 @@ -101,16 +101,20 @@ msgstr "" msgid "days" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:240 +#: cydiapomonella/templates/cydiapomonella/index.html:292 +msgid "Please wait..." +msgstr "" + +#: cydiapomonella/templates/cydiapomonella/index.html:301 #: cydiapomonella/templates/cydiapomonella/index_old.html:782 msgid "Date" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:241 -#: cydiapomonella/templates/cydiapomonella/index.html:242 -#: cydiapomonella/templates/cydiapomonella/index.html:243 -#: cydiapomonella/templates/cydiapomonella/index.html:244 -#: cydiapomonella/templates/cydiapomonella/index.html:245 +#: cydiapomonella/templates/cydiapomonella/index.html:302 +#: cydiapomonella/templates/cydiapomonella/index.html:303 +#: cydiapomonella/templates/cydiapomonella/index.html:304 +#: cydiapomonella/templates/cydiapomonella/index.html:305 +#: cydiapomonella/templates/cydiapomonella/index.html:306 #: cydiapomonella/templates/cydiapomonella/index_old.html:783 #: cydiapomonella/templates/cydiapomonella/index_old.html:784 #: cydiapomonella/templates/cydiapomonella/index_old.html:785 @@ -119,17 +123,17 @@ msgstr "" msgid "Temp at" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:246 +#: cydiapomonella/templates/cydiapomonella/index.html:307 #: cydiapomonella/templates/cydiapomonella/index_old.html:788 msgid "Daily rainfall" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:258 +#: cydiapomonella/templates/cydiapomonella/index.html:319 #: cydiapomonella/templates/cydiapomonella/index_old.html:803 msgid "Heat sum" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:261 +#: cydiapomonella/templates/cydiapomonella/index.html:322 #: cydiapomonella/templates/cydiapomonella/index_old.html:807 msgid "Calculate heat sum from date" msgstr "" diff --git a/cydiapomonella/locale/fi/LC_MESSAGES/django.po b/cydiapomonella/locale/fi/LC_MESSAGES/django.po index 383586e0d469c9665e7eba2d11e123524fd537a0..26d8afe36826b742d513a907eeb537d6e389965b 100644 --- a/cydiapomonella/locale/fi/LC_MESSAGES/django.po +++ b/cydiapomonella/locale/fi/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-31 12:29+0100\n" +"POT-Creation-Date: 2024-10-31 14:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -23,77 +23,77 @@ msgstr "" msgid "Cydia pomonella" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:85 +#: cydiapomonella/templates/cydiapomonella/index.html:141 msgid "Location name" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:86 +#: cydiapomonella/templates/cydiapomonella/index.html:142 msgid "Latitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:87 +#: cydiapomonella/templates/cydiapomonella/index.html:143 msgid "Longitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:88 +#: cydiapomonella/templates/cydiapomonella/index.html:144 msgid "Timezone" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:169 +#: cydiapomonella/templates/cydiapomonella/index.html:225 #: cydiapomonella/templates/cydiapomonella/index_old.html:718 msgid "Calculate the risk of attack by the coddling moth" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "" "Check night temps and rainfall for weather stations and locations in regions " "with coddling moth." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "Read more" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:171 +#: cydiapomonella/templates/cydiapomonella/index.html:227 msgid "" "If all criteria for oviposition are met, calculate heat sum from start date " "below." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:178 +#: cydiapomonella/templates/cydiapomonella/index.html:234 #: cydiapomonella/templates/cydiapomonella/index_old.html:727 msgid "No weather data available from the selected weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:184 +#: cydiapomonella/templates/cydiapomonella/index.html:240 msgid "I want to use weather data" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:188 +#: cydiapomonella/templates/cydiapomonella/index.html:244 msgid "for a specific location (coordinates)" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:195 -#: cydiapomonella/templates/cydiapomonella/index.html:208 +#: cydiapomonella/templates/cydiapomonella/index.html:251 +#: cydiapomonella/templates/cydiapomonella/index.html:264 msgid "Select in map" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:202 +#: cydiapomonella/templates/cydiapomonella/index.html:258 msgid "from a weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:206 +#: cydiapomonella/templates/cydiapomonella/index.html:262 #: cydiapomonella/templates/cydiapomonella/index_old.html:733 msgid "Select weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:220 +#: cydiapomonella/templates/cydiapomonella/index.html:276 msgid "I want to get night temperatures and rainfall back in time:" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:222 -#: cydiapomonella/templates/cydiapomonella/index.html:225 -#: cydiapomonella/templates/cydiapomonella/index.html:228 +#: cydiapomonella/templates/cydiapomonella/index.html:278 +#: cydiapomonella/templates/cydiapomonella/index.html:281 +#: cydiapomonella/templates/cydiapomonella/index.html:284 #: cydiapomonella/templates/cydiapomonella/index_old.html:765 #: cydiapomonella/templates/cydiapomonella/index_old.html:768 #: cydiapomonella/templates/cydiapomonella/index_old.html:771 @@ -101,16 +101,20 @@ msgstr "" msgid "days" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:240 +#: cydiapomonella/templates/cydiapomonella/index.html:292 +msgid "Please wait..." +msgstr "" + +#: cydiapomonella/templates/cydiapomonella/index.html:301 #: cydiapomonella/templates/cydiapomonella/index_old.html:782 msgid "Date" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:241 -#: cydiapomonella/templates/cydiapomonella/index.html:242 -#: cydiapomonella/templates/cydiapomonella/index.html:243 -#: cydiapomonella/templates/cydiapomonella/index.html:244 -#: cydiapomonella/templates/cydiapomonella/index.html:245 +#: cydiapomonella/templates/cydiapomonella/index.html:302 +#: cydiapomonella/templates/cydiapomonella/index.html:303 +#: cydiapomonella/templates/cydiapomonella/index.html:304 +#: cydiapomonella/templates/cydiapomonella/index.html:305 +#: cydiapomonella/templates/cydiapomonella/index.html:306 #: cydiapomonella/templates/cydiapomonella/index_old.html:783 #: cydiapomonella/templates/cydiapomonella/index_old.html:784 #: cydiapomonella/templates/cydiapomonella/index_old.html:785 @@ -119,17 +123,17 @@ msgstr "" msgid "Temp at" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:246 +#: cydiapomonella/templates/cydiapomonella/index.html:307 #: cydiapomonella/templates/cydiapomonella/index_old.html:788 msgid "Daily rainfall" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:258 +#: cydiapomonella/templates/cydiapomonella/index.html:319 #: cydiapomonella/templates/cydiapomonella/index_old.html:803 msgid "Heat sum" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:261 +#: cydiapomonella/templates/cydiapomonella/index.html:322 #: cydiapomonella/templates/cydiapomonella/index_old.html:807 msgid "Calculate heat sum from date" msgstr "" diff --git a/cydiapomonella/locale/nb/LC_MESSAGES/django.mo b/cydiapomonella/locale/nb/LC_MESSAGES/django.mo index 4d775eb22dee0f38f37338581eba9a743fda64f4..152099afda2261cea5427bfc8f7009d8d9d5d21c 100644 Binary files a/cydiapomonella/locale/nb/LC_MESSAGES/django.mo and b/cydiapomonella/locale/nb/LC_MESSAGES/django.mo differ diff --git a/cydiapomonella/locale/nb/LC_MESSAGES/django.po b/cydiapomonella/locale/nb/LC_MESSAGES/django.po index 3cbd390d23d5e5108fe758f9ed645dbe9f193764..a17d7ea18b83c6d4dc49227544d4bc597bb57bc3 100644 --- a/cydiapomonella/locale/nb/LC_MESSAGES/django.po +++ b/cydiapomonella/locale/nb/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-31 12:29+0100\n" -"PO-Revision-Date: 2024-10-31 12:29+0100\n" +"POT-Creation-Date: 2024-10-31 14:48+0100\n" +"PO-Revision-Date: 2024-10-31 14:49+0100\n" "Last-Translator: \n" "Language-Team: \n" "Language: nb\n" @@ -23,28 +23,28 @@ msgstr "" msgid "Cydia pomonella" msgstr "Eplevikler" -#: cydiapomonella/templates/cydiapomonella/index.html:85 +#: cydiapomonella/templates/cydiapomonella/index.html:141 msgid "Location name" msgstr "Stedsnavn" -#: cydiapomonella/templates/cydiapomonella/index.html:86 +#: cydiapomonella/templates/cydiapomonella/index.html:142 msgid "Latitude" msgstr "Breddegrad" -#: cydiapomonella/templates/cydiapomonella/index.html:87 +#: cydiapomonella/templates/cydiapomonella/index.html:143 msgid "Longitude" msgstr "Lengdegrad" -#: cydiapomonella/templates/cydiapomonella/index.html:88 +#: cydiapomonella/templates/cydiapomonella/index.html:144 msgid "Timezone" msgstr "Tidssone" -#: cydiapomonella/templates/cydiapomonella/index.html:169 +#: cydiapomonella/templates/cydiapomonella/index.html:225 #: cydiapomonella/templates/cydiapomonella/index_old.html:718 msgid "Calculate the risk of attack by the coddling moth" msgstr "Beregn fare for angrep av eplevikler" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "" "Check night temps and rainfall for weather stations and locations in regions " "with coddling moth." @@ -52,11 +52,11 @@ msgstr "" "Her kan du sjekke kveldstemperatur og nedbør for værstasjoner i regioner med " "eplevikler." -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "Read more" msgstr "Les mer" -#: cydiapomonella/templates/cydiapomonella/index.html:171 +#: cydiapomonella/templates/cydiapomonella/index.html:227 msgid "" "If all criteria for oviposition are met, calculate heat sum from start date " "below." @@ -64,40 +64,40 @@ msgstr "" "Dersom alle kriteriene for egglegging er oppfylt, beregn påløpt varmesum ved " "å skrive inn startdato nedenfor." -#: cydiapomonella/templates/cydiapomonella/index.html:178 +#: cydiapomonella/templates/cydiapomonella/index.html:234 #: cydiapomonella/templates/cydiapomonella/index_old.html:727 msgid "No weather data available from the selected weather station" msgstr "Ingen værdata er tilgjengelig fra den valgte målestasjonen" -#: cydiapomonella/templates/cydiapomonella/index.html:184 +#: cydiapomonella/templates/cydiapomonella/index.html:240 msgid "I want to use weather data" msgstr "Jeg vil bruke værdata" -#: cydiapomonella/templates/cydiapomonella/index.html:188 +#: cydiapomonella/templates/cydiapomonella/index.html:244 msgid "for a specific location (coordinates)" msgstr "for et punkt i kartet" -#: cydiapomonella/templates/cydiapomonella/index.html:195 -#: cydiapomonella/templates/cydiapomonella/index.html:208 +#: cydiapomonella/templates/cydiapomonella/index.html:251 +#: cydiapomonella/templates/cydiapomonella/index.html:264 msgid "Select in map" msgstr "Velg i kart" -#: cydiapomonella/templates/cydiapomonella/index.html:202 +#: cydiapomonella/templates/cydiapomonella/index.html:258 msgid "from a weather station" msgstr "fra en værstasjon" -#: cydiapomonella/templates/cydiapomonella/index.html:206 +#: cydiapomonella/templates/cydiapomonella/index.html:262 #: cydiapomonella/templates/cydiapomonella/index_old.html:733 msgid "Select weather station" msgstr "Velg målestasjon" -#: cydiapomonella/templates/cydiapomonella/index.html:220 +#: cydiapomonella/templates/cydiapomonella/index.html:276 msgid "I want to get night temperatures and rainfall back in time:" msgstr "Jeg vil hente data tilbake i tid fra:" -#: cydiapomonella/templates/cydiapomonella/index.html:222 -#: cydiapomonella/templates/cydiapomonella/index.html:225 -#: cydiapomonella/templates/cydiapomonella/index.html:228 +#: cydiapomonella/templates/cydiapomonella/index.html:278 +#: cydiapomonella/templates/cydiapomonella/index.html:281 +#: cydiapomonella/templates/cydiapomonella/index.html:284 #: cydiapomonella/templates/cydiapomonella/index_old.html:765 #: cydiapomonella/templates/cydiapomonella/index_old.html:768 #: cydiapomonella/templates/cydiapomonella/index_old.html:771 @@ -105,16 +105,20 @@ msgstr "Jeg vil hente data tilbake i tid fra:" msgid "days" msgstr "dager" -#: cydiapomonella/templates/cydiapomonella/index.html:240 +#: cydiapomonella/templates/cydiapomonella/index.html:292 +msgid "Please wait..." +msgstr "Vennligst vent..." + +#: cydiapomonella/templates/cydiapomonella/index.html:301 #: cydiapomonella/templates/cydiapomonella/index_old.html:782 msgid "Date" msgstr "Dato" -#: cydiapomonella/templates/cydiapomonella/index.html:241 -#: cydiapomonella/templates/cydiapomonella/index.html:242 -#: cydiapomonella/templates/cydiapomonella/index.html:243 -#: cydiapomonella/templates/cydiapomonella/index.html:244 -#: cydiapomonella/templates/cydiapomonella/index.html:245 +#: cydiapomonella/templates/cydiapomonella/index.html:302 +#: cydiapomonella/templates/cydiapomonella/index.html:303 +#: cydiapomonella/templates/cydiapomonella/index.html:304 +#: cydiapomonella/templates/cydiapomonella/index.html:305 +#: cydiapomonella/templates/cydiapomonella/index.html:306 #: cydiapomonella/templates/cydiapomonella/index_old.html:783 #: cydiapomonella/templates/cydiapomonella/index_old.html:784 #: cydiapomonella/templates/cydiapomonella/index_old.html:785 @@ -123,17 +127,17 @@ msgstr "Dato" msgid "Temp at" msgstr "Temp kl" -#: cydiapomonella/templates/cydiapomonella/index.html:246 +#: cydiapomonella/templates/cydiapomonella/index.html:307 #: cydiapomonella/templates/cydiapomonella/index_old.html:788 msgid "Daily rainfall" msgstr "Døgnnedbør" -#: cydiapomonella/templates/cydiapomonella/index.html:258 +#: cydiapomonella/templates/cydiapomonella/index.html:319 #: cydiapomonella/templates/cydiapomonella/index_old.html:803 msgid "Heat sum" msgstr "Varmesum" -#: cydiapomonella/templates/cydiapomonella/index.html:261 +#: cydiapomonella/templates/cydiapomonella/index.html:322 #: cydiapomonella/templates/cydiapomonella/index_old.html:807 msgid "Calculate heat sum from date" msgstr "Beregn varmesum fra dato" diff --git a/cydiapomonella/locale/vi/LC_MESSAGES/django.po b/cydiapomonella/locale/vi/LC_MESSAGES/django.po index e906b45ab61e372ebcacfca88d98037980f425ba..9da9adb3ad10f21d2d7cd86e8f9f1c372b693c5f 100644 --- a/cydiapomonella/locale/vi/LC_MESSAGES/django.po +++ b/cydiapomonella/locale/vi/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-31 12:29+0100\n" +"POT-Creation-Date: 2024-10-31 14:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -23,77 +23,77 @@ msgstr "" msgid "Cydia pomonella" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:85 +#: cydiapomonella/templates/cydiapomonella/index.html:141 msgid "Location name" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:86 +#: cydiapomonella/templates/cydiapomonella/index.html:142 msgid "Latitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:87 +#: cydiapomonella/templates/cydiapomonella/index.html:143 msgid "Longitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:88 +#: cydiapomonella/templates/cydiapomonella/index.html:144 msgid "Timezone" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:169 +#: cydiapomonella/templates/cydiapomonella/index.html:225 #: cydiapomonella/templates/cydiapomonella/index_old.html:718 msgid "Calculate the risk of attack by the coddling moth" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "" "Check night temps and rainfall for weather stations and locations in regions " "with coddling moth." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "Read more" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:171 +#: cydiapomonella/templates/cydiapomonella/index.html:227 msgid "" "If all criteria for oviposition are met, calculate heat sum from start date " "below." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:178 +#: cydiapomonella/templates/cydiapomonella/index.html:234 #: cydiapomonella/templates/cydiapomonella/index_old.html:727 msgid "No weather data available from the selected weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:184 +#: cydiapomonella/templates/cydiapomonella/index.html:240 msgid "I want to use weather data" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:188 +#: cydiapomonella/templates/cydiapomonella/index.html:244 msgid "for a specific location (coordinates)" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:195 -#: cydiapomonella/templates/cydiapomonella/index.html:208 +#: cydiapomonella/templates/cydiapomonella/index.html:251 +#: cydiapomonella/templates/cydiapomonella/index.html:264 msgid "Select in map" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:202 +#: cydiapomonella/templates/cydiapomonella/index.html:258 msgid "from a weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:206 +#: cydiapomonella/templates/cydiapomonella/index.html:262 #: cydiapomonella/templates/cydiapomonella/index_old.html:733 msgid "Select weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:220 +#: cydiapomonella/templates/cydiapomonella/index.html:276 msgid "I want to get night temperatures and rainfall back in time:" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:222 -#: cydiapomonella/templates/cydiapomonella/index.html:225 -#: cydiapomonella/templates/cydiapomonella/index.html:228 +#: cydiapomonella/templates/cydiapomonella/index.html:278 +#: cydiapomonella/templates/cydiapomonella/index.html:281 +#: cydiapomonella/templates/cydiapomonella/index.html:284 #: cydiapomonella/templates/cydiapomonella/index_old.html:765 #: cydiapomonella/templates/cydiapomonella/index_old.html:768 #: cydiapomonella/templates/cydiapomonella/index_old.html:771 @@ -101,16 +101,20 @@ msgstr "" msgid "days" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:240 +#: cydiapomonella/templates/cydiapomonella/index.html:292 +msgid "Please wait..." +msgstr "" + +#: cydiapomonella/templates/cydiapomonella/index.html:301 #: cydiapomonella/templates/cydiapomonella/index_old.html:782 msgid "Date" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:241 -#: cydiapomonella/templates/cydiapomonella/index.html:242 -#: cydiapomonella/templates/cydiapomonella/index.html:243 -#: cydiapomonella/templates/cydiapomonella/index.html:244 -#: cydiapomonella/templates/cydiapomonella/index.html:245 +#: cydiapomonella/templates/cydiapomonella/index.html:302 +#: cydiapomonella/templates/cydiapomonella/index.html:303 +#: cydiapomonella/templates/cydiapomonella/index.html:304 +#: cydiapomonella/templates/cydiapomonella/index.html:305 +#: cydiapomonella/templates/cydiapomonella/index.html:306 #: cydiapomonella/templates/cydiapomonella/index_old.html:783 #: cydiapomonella/templates/cydiapomonella/index_old.html:784 #: cydiapomonella/templates/cydiapomonella/index_old.html:785 @@ -119,17 +123,17 @@ msgstr "" msgid "Temp at" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:246 +#: cydiapomonella/templates/cydiapomonella/index.html:307 #: cydiapomonella/templates/cydiapomonella/index_old.html:788 msgid "Daily rainfall" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:258 +#: cydiapomonella/templates/cydiapomonella/index.html:319 #: cydiapomonella/templates/cydiapomonella/index_old.html:803 msgid "Heat sum" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:261 +#: cydiapomonella/templates/cydiapomonella/index.html:322 #: cydiapomonella/templates/cydiapomonella/index_old.html:807 msgid "Calculate heat sum from date" msgstr "" diff --git a/cydiapomonella/locale/zh_Hans/LC_MESSAGES/django.po b/cydiapomonella/locale/zh_Hans/LC_MESSAGES/django.po index e906b45ab61e372ebcacfca88d98037980f425ba..9da9adb3ad10f21d2d7cd86e8f9f1c372b693c5f 100644 --- a/cydiapomonella/locale/zh_Hans/LC_MESSAGES/django.po +++ b/cydiapomonella/locale/zh_Hans/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-31 12:29+0100\n" +"POT-Creation-Date: 2024-10-31 14:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -23,77 +23,77 @@ msgstr "" msgid "Cydia pomonella" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:85 +#: cydiapomonella/templates/cydiapomonella/index.html:141 msgid "Location name" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:86 +#: cydiapomonella/templates/cydiapomonella/index.html:142 msgid "Latitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:87 +#: cydiapomonella/templates/cydiapomonella/index.html:143 msgid "Longitude" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:88 +#: cydiapomonella/templates/cydiapomonella/index.html:144 msgid "Timezone" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:169 +#: cydiapomonella/templates/cydiapomonella/index.html:225 #: cydiapomonella/templates/cydiapomonella/index_old.html:718 msgid "Calculate the risk of attack by the coddling moth" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "" "Check night temps and rainfall for weather stations and locations in regions " "with coddling moth." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:170 +#: cydiapomonella/templates/cydiapomonella/index.html:226 msgid "Read more" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:171 +#: cydiapomonella/templates/cydiapomonella/index.html:227 msgid "" "If all criteria for oviposition are met, calculate heat sum from start date " "below." msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:178 +#: cydiapomonella/templates/cydiapomonella/index.html:234 #: cydiapomonella/templates/cydiapomonella/index_old.html:727 msgid "No weather data available from the selected weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:184 +#: cydiapomonella/templates/cydiapomonella/index.html:240 msgid "I want to use weather data" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:188 +#: cydiapomonella/templates/cydiapomonella/index.html:244 msgid "for a specific location (coordinates)" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:195 -#: cydiapomonella/templates/cydiapomonella/index.html:208 +#: cydiapomonella/templates/cydiapomonella/index.html:251 +#: cydiapomonella/templates/cydiapomonella/index.html:264 msgid "Select in map" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:202 +#: cydiapomonella/templates/cydiapomonella/index.html:258 msgid "from a weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:206 +#: cydiapomonella/templates/cydiapomonella/index.html:262 #: cydiapomonella/templates/cydiapomonella/index_old.html:733 msgid "Select weather station" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:220 +#: cydiapomonella/templates/cydiapomonella/index.html:276 msgid "I want to get night temperatures and rainfall back in time:" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:222 -#: cydiapomonella/templates/cydiapomonella/index.html:225 -#: cydiapomonella/templates/cydiapomonella/index.html:228 +#: cydiapomonella/templates/cydiapomonella/index.html:278 +#: cydiapomonella/templates/cydiapomonella/index.html:281 +#: cydiapomonella/templates/cydiapomonella/index.html:284 #: cydiapomonella/templates/cydiapomonella/index_old.html:765 #: cydiapomonella/templates/cydiapomonella/index_old.html:768 #: cydiapomonella/templates/cydiapomonella/index_old.html:771 @@ -101,16 +101,20 @@ msgstr "" msgid "days" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:240 +#: cydiapomonella/templates/cydiapomonella/index.html:292 +msgid "Please wait..." +msgstr "" + +#: cydiapomonella/templates/cydiapomonella/index.html:301 #: cydiapomonella/templates/cydiapomonella/index_old.html:782 msgid "Date" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:241 -#: cydiapomonella/templates/cydiapomonella/index.html:242 -#: cydiapomonella/templates/cydiapomonella/index.html:243 -#: cydiapomonella/templates/cydiapomonella/index.html:244 -#: cydiapomonella/templates/cydiapomonella/index.html:245 +#: cydiapomonella/templates/cydiapomonella/index.html:302 +#: cydiapomonella/templates/cydiapomonella/index.html:303 +#: cydiapomonella/templates/cydiapomonella/index.html:304 +#: cydiapomonella/templates/cydiapomonella/index.html:305 +#: cydiapomonella/templates/cydiapomonella/index.html:306 #: cydiapomonella/templates/cydiapomonella/index_old.html:783 #: cydiapomonella/templates/cydiapomonella/index_old.html:784 #: cydiapomonella/templates/cydiapomonella/index_old.html:785 @@ -119,17 +123,17 @@ msgstr "" msgid "Temp at" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:246 +#: cydiapomonella/templates/cydiapomonella/index.html:307 #: cydiapomonella/templates/cydiapomonella/index_old.html:788 msgid "Daily rainfall" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:258 +#: cydiapomonella/templates/cydiapomonella/index.html:319 #: cydiapomonella/templates/cydiapomonella/index_old.html:803 msgid "Heat sum" msgstr "" -#: cydiapomonella/templates/cydiapomonella/index.html:261 +#: cydiapomonella/templates/cydiapomonella/index.html:322 #: cydiapomonella/templates/cydiapomonella/index_old.html:807 msgid "Calculate heat sum from date" msgstr "" diff --git a/cydiapomonella/static/js/cydiapomonella.js b/cydiapomonella/static/js/cydiapomonella.js index e79d16674948f4b99c4fef2ac8c774fce2a98c32..964f06fb16058ad55a8b479dec9131396ec88f5b 100644 --- a/cydiapomonella/static/js/cydiapomonella.js +++ b/cydiapomonella/static/js/cydiapomonella.js @@ -27,6 +27,7 @@ class CydiaPomonella HEATSUM_BASE_TEMP = 10.0; WEATHER_DATASOURCE_TYPE_COORDINATES = "coordinates"; WEATHER_DATASOURCE_TYPE_WEATHERSTATION = "weatherstation"; + progressIconRow = document.getElementById("progressIconRow"); appleWeatherStations = [ @@ -81,6 +82,7 @@ class CydiaPomonella } async runModel() { + this.progressIconRow.style.display = "block"; let selectedWeatherStationId = this.getSelectedWeatherstation(); let selectedCoordinate = this.getSelectedCoordinate(); if(selectedWeatherStationId == undefined && selectedCoordinate == undefined) @@ -139,6 +141,7 @@ class CydiaPomonella { console.error(error.message); } + this.progressIconRow.style.display = "none"; } async runHeatSumCalculations() diff --git a/cydiapomonella/templates/cydiapomonella/index.html b/cydiapomonella/templates/cydiapomonella/index.html index bb0f25f1a6d542dfcb507ac7a69f11223add9c9c..b78c32343551239998c71e5eab6098bee7a14ee5 100644 --- a/cydiapomonella/templates/cydiapomonella/index.html +++ b/cydiapomonella/templates/cydiapomonella/index.html @@ -39,13 +39,69 @@ Created: 2024-10-28 <script type="module"> import CydiaPomonella from "../static/js/cydiapomonella.js"; const cydiaPomonella = new CydiaPomonella(); + const userSettingsFields = ["latitude","longitude","timezone","weatherStationId","heatSumStartDate"]; + const userSettingsRadios = ["weatherdataType","radioDays"]; window.onload = (event) => { cydiaPomonella.renderWeatherstations(); + //console.info(getNameSpaced("{{ form_id }}",userSettingsFields.concat(userSettingsRadios))); + let userSettings = getLocalSettings(getNameSpaced("{{ form_id }}",userSettingsFields.concat(userSettingsRadios)), false); + + // Settings found, render form and run model + if(Object.keys(userSettings).length > 0) + { + userSettingsFields.forEach((fieldId) =>{ + document.getElementById(fieldId).value = userSettings[`{{ form_id }}.${fieldId}`]; + }); + userSettingsRadios.forEach((radioName) => { + let radioValue = userSettings[`{{ form_id }}.${radioName}`]; + document.getElementsByName(radioName).forEach((radioElement) => { + radioElement.checked = (radioElement.value == radioValue); + }); + }); + + // Check that heat sum start date is in current year. If not: Update to current year + let heatSumStartDateElement = document.getElementById("heatSumStartDate"); + let heatSumStartDate = moment(heatSumStartDateElement.value); + if(heatSumStartDate.year() != moment().year()) + { + heatSumStartDate.year(moment().year()); + heatSumStartDateElement.value = heatSumStartDate.format(cydiaPomonella.DATE_FORMAT); + } + + + if(document.getElementById("coordinates").checked) + { + displayCoordinatesInput(); + getTimezoneForPoint(inputLatitudeElement.value, inputLongitudeElement.value); + } + else + { + displayWeatherstationInput(); + } + + cydiaPomonella.runModel(); + } } // We need to do it this way to keep the "this" reference of the class window.runModel = function () {cydiaPomonella.runModel()}; window.runHeatSumCalculations = function () {cydiaPomonella.runHeatSumCalculations();}; + window.storeUserSettings = function() { + let userSettings = {}; + userSettingsFields.forEach((fieldId) => { + userSettings[`{{ form_id }}.${fieldId}`] = document.getElementById(fieldId).value; + }); + userSettingsRadios.forEach((radioName) => { + document.getElementsByName(radioName).forEach((radioElement) => { + if(radioElement.checked) + { + userSettings[`{{ form_id }}.${radioName}`] = radioElement.value; + } + }); + + }); + storeLocalSettings(userSettings); + } /* ######## MAP UI FUNCTIONALITY ######### */ import MapModal from 'https://logic.testvips.nibio.no/js/mapModal.js'; @@ -65,7 +121,6 @@ Created: 2024-10-28 selectWeatherstationElement.selectedIndex = 0; } - // Callback for coordinates map function selectCoordinates(coordinatesData) { const selectedLatitude = coordinatesData ? coordinatesData.latitude : undefined; @@ -77,6 +132,7 @@ Created: 2024-10-28 } getTimezoneForPoint(selectedLatitude, selectedLongitude); cydiaPomonella.runModel(); + storeUserSettings(); } const getTimezoneForPoint = (latitude, longitude) => { @@ -184,7 +240,7 @@ Created: 2024-10-28 <h4>{% trans "I want to use weather data" %}</h4> <div class="radio"> <label> - <input type="radio" name="weatherdataType" id="coordinates" value="coordinates" onchange="displayCoordinatesInput()"> + <input type="radio" name="weatherdataType" id="coordinates" value="coordinates" onchange="displayCoordinatesInput();storeUserSettings();"> {% trans "for a specific location (coordinates)" %} </label> <div id="input-coordinates" class="form-inline" style="margin-top: 10px; display: none;""> @@ -192,17 +248,17 @@ Created: 2024-10-28 <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> - <button type="button" class="btn btn-primary" onclick="openCoordinatesMap()" style="margin-left: 5px;"><i class="fa fa-map-marker fa-lg"></i> {% trans "Select in map" %}</button> + <button type="button" class="btn btn-primary" onclick="openCoordinatesMap();" style="margin-left: 5px;"><i class="fa fa-map-marker fa-lg"></i> {% trans "Select in map" %}</button> </div> <div id="coordinates-map" class="map-modal"></div> </div> <div class="radio"> <label> - <input type="radio" name="weatherdataType" id="weatherstation" value="weatherstation" checked onchange="displayWeatherstationInput()"> + <input type="radio" name="weatherdataType" id="weatherstation" value="weatherstation" onchange="displayWeatherstationInput();storeUserSettings();"> {% trans "from a weather station" %} </label> <div id="input-weatherstation" class="form-inline" style="margin-top: 10px;" > - <select name="weatherStationName" id="weatherStationId" class="form-control" style="width: 60%;" onchange="runModel();"> + <select name="weatherStationName" id="weatherStationId" class="form-control" style="width: 60%;" onchange="runModel();storeUserSettings();"> <option value="-1">-- {% trans "Select weather station" %} --</option> </select> <button type="button" class="btn btn-primary" onclick="openPoiMap()" style="margin-left: 5px;"><i class="fa fa-map-marker fa-lg"></i> {% trans "Select in map" %}</button> @@ -219,18 +275,23 @@ Created: 2024-10-28 <form> <h4>{% trans "I want to get night temperatures and rainfall back in time:" %} </h4> <label class="radio-inline"> - <input type="radio" name="radioDays" value="7" checked onclick="runModel()">7 {% trans "days" %} + <input type="radio" name="radioDays" value="7" checked onclick="runModel(); storeUserSettings();">7 {% trans "days" %} </label> <label class="radio-inline"> - <input type="radio" name="radioDays" value="14" onclick="runModel()">14 {% trans "days" %} + <input type="radio" name="radioDays" value="14" onclick="runModel(); storeUserSettings();">14 {% trans "days" %} </label> <label class="radio-inline"> - <input type="radio" name="radioDays" value="21" onclick="runModel()">21 {% trans "days" %} + <input type="radio" name="radioDays" value="21" onclick="runModel(); storeUserSettings();">21 {% trans "days" %} </label> </form> </div> </div> +<div class="row" id="progressIconRow" style="margin-bottom: 10px; display: none;"> + <div class="col-md-6"> + <button type="button" class="btn btn-info" style="margin-left: 5px;"><i class="fa fa-hourglass-half fa-lg"></i> {% trans "Please wait..." %}</button> + </div> +</div> <div class="row"> <div class="col-sm-10"> @@ -259,7 +320,7 @@ Created: 2024-10-28 <form class="form-inline"> <div class="form-group form-inline"> <label for="heatSumStartDate">{% trans "Calculate heat sum from date" %}:</label> - <input id="heatSumStartDate" name="heatSumStartDate" class="form-control" type="date" placeholder="yyyy-mm-dd" onchange="runHeatSumCalculations()" value="{% now "Y" %}-05-01" /> + <input id="heatSumStartDate" name="heatSumStartDate" class="form-control" type="date" placeholder="yyyy-mm-dd" onchange="runHeatSumCalculations();storeUserSettings();" value="{% now "Y" %}-05-01" /> </div> </form> </div> diff --git a/cydiapomonella/views.py b/cydiapomonella/views.py index 3dceb66b6aa4ef12cfda6bb5527fa15ab065f24b..686e79987eb3356c97932f180c2b4783cba92bca 100644 --- a/cydiapomonella/views.py +++ b/cydiapomonella/views.py @@ -29,15 +29,7 @@ from django.http import HttpResponse def index(request): context = { - + "form_id": "cydiapomonella" } return render(request,'cydiapomonella/index.html', context) - #return HttpResponse("Hello - 01 !!.. This is new app for VIPSWeb") - -def index_new(request): - - context = { - - } - return render(request,'cydiapomonella/index_new.html', context) #return HttpResponse("Hello - 01 !!.. This is new app for VIPSWeb") \ No newline at end of file