Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit f5a64ec

Browse files
authored
Merge pull request #754 from GeotrekCE/suricate-add-file
Suricate add file
2 parents 9215420 + 624ba9b commit f5a64ec

File tree

20 files changed

+209
-36
lines changed

20 files changed

+209
-36
lines changed

CHANGES.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
2.24.1dev0
2-
===================
2+
==========
33

44
**Enhancements**
55

6+
* Add support for Suricate options in warning form
7+
* Add activity and magnitude problem fields in warning form
8+
* Get options list (magnitude problem, activities, categories) from endpoint
9+
**Warning:** these features are only available for Geotrek-admin >= 2.32.12
10+
611
**Bug fixes**
712

13+
*
814

915
2.24.0 / 2020-04-28
1016
===================
@@ -18,6 +24,12 @@
1824
* Add translation file for portugese
1925
* Fix some translation error
2026

27+
* Add support for Suricate options in warning form
28+
- add activity and magnitude problem fields
29+
- get options list from endpoint
30+
- display activity and magnitude only if options list is available from API
31+
**Warning:** this feature is only available for Geotrek-admin >= 2.32.12
32+
2133
**Bug fixes**
2234

2335
* Fix open PDF from POI and detail page

docs/settings-custom-json-all-options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ DEM_FILE | "dem.json" | DEM file
210210
PROFILE_FILE | "profile.json" | Profile file
211211
WARNING_CAT_DIR | "feedback" | Warning catefories dir file
212212
WARNING_CAT_FILE | "categories.json" | Warning categories file
213+
WARNING_OPT_FILE | "options.json" | Warning options file (for Suricate support)
213214
WARNING_SUBMIT_URL | "reports/report" | Warning submit URL
214215
STYLES_CONFIG_FILE | "styles.json" | Custom styles variables
215216
APPROVED_BIG | "images/approved-big.png" | Default big image for approved label (for detail page)

src/app/config/factories.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function settingsFactory(globalSettings) {
1919
divesUrl = globalSettings.API_URL + '/' + globalSettings.API_DIR + '/$lang/' + globalSettings.DIVES_FILE,
2020
flatUrl = globalSettings.API_URL + '/' + globalSettings.API_DIR + '/$lang/' + globalSettings.FLAT_FILE,
2121
warningCategoriesUrl = globalSettings.API_URL + '/' + globalSettings.API_DIR + '/$lang/' + globalSettings.WARNING_CAT_DIR + '/' + globalSettings.WARNING_CAT_FILE,
22+
warningOptionsUrl = globalSettings.API_URL + '/' + globalSettings.API_DIR + '/$lang/' + globalSettings.WARNING_CAT_DIR + '/' + globalSettings.WARNING_OPT_FILE,
2223
warningSubmitUrl = globalSettings.BACKOFFICE_URL + '/' + globalSettings.API_DIR + '/$lang/' + globalSettings.WARNING_SUBMIT_URL,
2324
stylesConfigUrl = globalSettings.BACKOFFICE_URL + '/' + globalSettings.API_DIR + '/$lang/' + globalSettings.STYLES_CONFIG_FILE,
2425
sensitiveUrl = globalSettings.API_URL + '/' + globalSettings.API_DIR + '/$lang/' + globalSettings.SENSITIVE_FILE,
@@ -54,6 +55,7 @@ function settingsFactory(globalSettings) {
5455
divesUrl: divesUrl,
5556
flatUrl: flatUrl,
5657
warningCategoriesUrl: warningCategoriesUrl,
58+
warningOptionsUrl: warningOptionsUrl,
5759
warningSubmitUrl: warningSubmitUrl,
5860
stylesConfigUrl: stylesConfigUrl,
5961
sensitiveUrl: sensitiveUrl,

src/app/config/settings.default.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
"PROFILE_FILE": "profile.json",
140140
"WARNING_CAT_DIR": "feedback",
141141
"WARNING_CAT_FILE": "categories.json",
142+
"WARNING_OPT_FILE": "options.json",
142143
"WARNING_SUBMIT_URL": "reports/report",
143144
"STYLES_CONFIG_FILE": "styles.json",
144145
"APPROVED_BIG": "images/approved-big.png",

src/app/translation/po/ca.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,15 @@ msgstr ""
323323
msgid "FORM_EMAIL"
324324
msgstr "Correu electrònic"
325325

326+
msgid "FORM_ACTIVITY"
327+
msgstr "Activitia"
328+
326329
msgid "FORM_CATEGORY"
327330
msgstr "Categoria"
328331

332+
msgid "FORM_MAGNITUDE_PROBLEM"
333+
msgstr ""
334+
329335
msgid "FORM_COMMENT"
330336
msgstr "Comentari"
331337

src/app/translation/po/de.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,15 @@ msgstr ""
357357
msgid "FORM_EMAIL"
358358
msgstr "Email"
359359

360+
msgid "FORM_ACTIVITY"
361+
msgstr "Aktivität"
362+
360363
msgid "FORM_CATEGORY"
361364
msgstr "Kategorie"
362365

366+
msgid "FORM_MAGNITUDE_PROBLEM"
367+
msgstr "Ausmaß des Problems"
368+
363369
msgid "FORM_COMMENT"
364370
msgstr "Kommentar"
365371

src/app/translation/po/en.po

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,15 @@ msgstr "These information will be used by {{ organisation }}, "
371371
msgid "FORM_EMAIL"
372372
msgstr "Email"
373373

374+
msgid "FORM_ACTIVITY"
375+
msgstr "Activity"
376+
374377
msgid "FORM_CATEGORY"
375378
msgstr "Category"
376379

380+
msgid "FORM_MAGNITUDE_PROBLEM"
381+
msgstr "Magnitude of the problem"
382+
377383
msgid "FORM_COMMENT"
378384
msgstr "Comment"
379385

@@ -383,6 +389,9 @@ msgstr "Location (clic on map to place the mark)"
383389
msgid "FORM_SEND"
384390
msgstr "Send"
385391

392+
msgid "FORM_PICTURES"
393+
msgstr "Photography"
394+
386395
msgid "KML"
387396
msgstr "Download the KML file"
388397

src/app/translation/po/es.po

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,15 @@ msgstr ""
332332
msgid "FORM_EMAIL"
333333
msgstr "Correo electrónico"
334334

335+
msgid "FORM_ACTIVITY"
336+
msgstr "Actividad"
337+
335338
msgid "FORM_CATEGORY"
336339
msgstr "Categoría"
337340

341+
msgid "FORM_MAGNITUDE_PROBLEM"
342+
msgstr "Magnitud del problema"
343+
338344
msgid "FORM_COMMENT"
339345
msgstr "Comentario"
340346

@@ -344,6 +350,9 @@ msgstr "Paradero (hacer clic sobre la mapa para posicionar el cursor)"
344350
msgid "FORM_SEND"
345351
msgstr "Informar"
346352

353+
msgid "FORM_PICTURES"
354+
msgstr "Fotografía"
355+
347356
msgid "KML"
348357
msgstr "Descargar fichero KML"
349358

src/app/translation/po/fr.po

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,15 @@ msgstr ""
357357
msgid "FORM_EMAIL"
358358
msgstr "Email"
359359

360+
msgid "FORM_ACTIVITY"
361+
msgstr "Activité"
362+
360363
msgid "FORM_CATEGORY"
361364
msgstr "Catégorie"
362365

366+
msgid "FORM_MAGNITUDE_PROBLEM"
367+
msgstr "Ampleur du problème"
368+
363369
msgid "FORM_COMMENT"
364370
msgstr "Commentaire"
365371

@@ -369,6 +375,9 @@ msgstr "Emplacement (cliquez sur la carte pour positionner le marqueur)"
369375
msgid "FORM_SEND"
370376
msgstr "Signaler"
371377

378+
msgid "FORM_PICTURES"
379+
msgstr "Photographies"
380+
372381
msgid "KML"
373382
msgstr "Télécharger la fiche KML"
374383

src/app/translation/po/it.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,17 @@ msgstr ""
357357
msgid "FORM_EMAIL"
358358
msgstr ""
359359

360+
msgid "FORM_PICTURES"
361+
msgstr "Fotografia"
362+
363+
msgid "FORM_ACTIVITY"
364+
msgstr "Attività"
365+
360366
msgid "FORM_CATEGORY"
361-
msgstr ""
367+
msgstr "Categoria"
368+
369+
msgid "FORM_MAGNITUDE_PROBLEM"
370+
msgstr "Entità del problema"
362371

363372
msgid "FORM_COMMENT"
364373
msgstr ""

0 commit comments

Comments
 (0)