From e8f1662d491440750b57836c6eb1ed879da83df3 Mon Sep 17 00:00:00 2001
From: Mathias Chouet <mathias.chouet@irstea.fr>
Date: Thu, 23 Apr 2020 15:46:10 +0200
Subject: [PATCH] Espece: split parameters into 3 fieldsets

---
 src/app/calculators/espece/config.json | 18 +++++++++++++++---
 src/app/calculators/espece/en.json     |  4 +++-
 src/app/calculators/espece/fr.json     |  4 +++-
 3 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/src/app/calculators/espece/config.json b/src/app/calculators/espece/config.json
index d11f5f33e..963ce4147 100644
--- a/src/app/calculators/espece/config.json
+++ b/src/app/calculators/espece/config.json
@@ -1,6 +1,6 @@
 [
     {
-        "id": "fs_param_species",
+        "id": "fs_param_pab",
         "type": "fieldset",
         "fields": [
             {
@@ -22,7 +22,13 @@
             {
                 "id": "HMin",
                 "allowEmpty": true
-            },
+            }
+        ]
+    },
+    {
+        "id": "fs_param_pam",
+        "type": "fieldset",
+        "fields": [
             {
                 "id": "YMin",
                 "allowEmpty": true
@@ -30,7 +36,13 @@
             {
                 "id": "VMax",
                 "allowEmpty": true
-            },
+            }
+        ]
+    },
+    {
+        "id": "fs_param_par",
+        "type": "fieldset",
+        "fields": [
             {
                 "id": "YMinSB",
                 "allowEmpty": true
diff --git a/src/app/calculators/espece/en.json b/src/app/calculators/espece/en.json
index 2f28082b7..b98d29c43 100644
--- a/src/app/calculators/espece/en.json
+++ b/src/app/calculators/espece/en.json
@@ -1,5 +1,7 @@
 {
-    "fs_param_species": "Species parameters",
+    "fs_param_pab": "Fish ladders",
+    "fs_param_pam": "Rock-ramp fishpasses",
+    "fs_param_par": "Humpback fishways",
 
     "DHMax": "Maximal fall",
     "BMin": "Minimal slot or weir width",
diff --git a/src/app/calculators/espece/fr.json b/src/app/calculators/espece/fr.json
index 8100e4607..bb190a2ff 100644
--- a/src/app/calculators/espece/fr.json
+++ b/src/app/calculators/espece/fr.json
@@ -1,5 +1,7 @@
 {
-    "fs_param_species": "Paramètres de l'espèce",
+    "fs_param_pab": "Passes à bassins",
+    "fs_param_pam": "Passes à macrorugosités",
+    "fs_param_par": "Passes à ralentisseurs",
 
     "DHMax": "Chute maximale",
     "BMin": "Largeur minimale de fente ou échancrure latérale",
-- 
GitLab