diff --git a/DEVELOPERS.md b/DEVELOPERS.md index 306e7fcf319054e8e42c656cb6b89e13511493c9..15e648458cf35697dcf8f9f7f2e5c4b845ee0462 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -290,6 +290,8 @@ Dans le fichier de configuration du module, ajouter la définition des listes d } ``` +**IMPORTANT** : les id doivent être de la forme `select_`_`unmotclesansespacenitirets`_ + #### si la liste n'est pas associée à un enum Une liste déroulante peut être associée à une **source**, qui détermine quels sont les choix possibles. diff --git a/src/app/calculators/bief/en.json b/src/app/calculators/bief/en.json index 772347ac1f48280ec7f13918b61819abcacc1835..30465b07a001799b439f37cbd77f79b5c55a469c 100644 --- a/src/app/calculators/bief/en.json +++ b/src/app/calculators/bief/en.json @@ -2,16 +2,16 @@ "fs_water_line": "Type of water line", "select_regime": "Regime", - "select_regime_0": "Fluvial", - "select_regime_1": "Torrential", + "REGIME_0": "Fluvial", + "REGIME_1": "Torrential", "fs_section": "Type of section", "select_section": "Choice of section type", - "select_section_2": "Trapezoidal", - "select_section_1": "Rectangular", - "select_section_0": "Circular", - "select_section_3": "Parabolic", + "SECTION_2": "Trapezoidal", + "SECTION_1": "Rectangular", + "SECTION_0": "Circular", + "SECTION_3": "Parabolic", "LargeurFond": "Width at bottom", "Fruit": "Bank slope", diff --git a/src/app/calculators/bief/fr.json b/src/app/calculators/bief/fr.json index a8f1f5489da3ea14cd4348509ef742608b90787c..e2389fae1c101e88fafc12a363a007e4be48cd4b 100644 --- a/src/app/calculators/bief/fr.json +++ b/src/app/calculators/bief/fr.json @@ -2,16 +2,16 @@ "fs_water_line": "Type de ligne d'eau", "select_regime": "Régime", - "select_regime_0": "Fluvial", - "select_regime_1": "Torrentiel", + "REGIME_0": "Fluvial", + "REGIME_1": "Torrentiel", "fs_section": "Type de section", "select_section": "Choix du type de section", - "select_section_2": "Trapézoïdale", - "select_section_1": "Rectangulaire", - "select_section_0": "Circulaire", - "select_section_3": "Parabolique", + "SECTION_2": "Trapézoïdale", + "SECTION_1": "Rectangulaire", + "SECTION_0": "Circulaire", + "SECTION_3": "Parabolique", "LargeurFond": "Largeur au fond", "Fruit": "Fruit des berges", diff --git a/src/app/calculators/courberemous/en.json b/src/app/calculators/courberemous/en.json index cb5166fe0c34681d594ae8ce8f72eaa854b23064..f3d964669d796c959eb00a274e760dfd9728db58 100644 --- a/src/app/calculators/courberemous/en.json +++ b/src/app/calculators/courberemous/en.json @@ -2,10 +2,10 @@ "fs_section": "Type of section", "select_section": "Choice of section type", - "select_section_2": "Trapezoidal", - "select_section_1": "Rectangular", - "select_section_0": "Circular", - "select_section_3": "Parabolic", + "SECTION_2": "Trapezoidal", + "SECTION_1": "Rectangular", + "SECTION_0": "Circular", + "SECTION_3": "Parabolic", "LargeurFond": "Width at bottom", "Fruit": "Bank slope", @@ -43,27 +43,27 @@ "UNIT_IMP": "N", "UNIT_TAU0": "Pa", - "select_resolution_0": "Integration by trapezoid", - "select_resolution_1": "Runge Kutta fourth order", - "select_resolution_2": "Explicit Euler", + "RESOLUTION_0": "Integration by trapezoid", + "RESOLUTION_1": "Runge Kutta fourth order", + "RESOLUTION_2": "Explicit Euler", "fs_target_data": "Data to compute", "select_target": "Choice of the data to compute", - "select_target_none": "None", - "select_target_Hs": "Head (m)", - "select_target_Hsc": "Critical head (m)", - "select_target_B": "Surface width (m)", - "select_target_P": "Wetted perimeter (m)", - "select_target_S": "Wetted area (m2)", - "select_target_R": "Hydraulic radius (m)", - "select_target_V": "Average speed (m/s)", - "select_target_Fr": "Froude number", - "select_target_Yc": "Critical depth (m)", - "select_target_Yn": "Normal depth (m)", - "select_target_Ycor": "Corresponding depth (m)", - "select_target_Ycon": "Conjugate depth (m)", - "select_target_J": "Head loss (m)", - "select_target_I-J": "Linear variation of specific head (m/m)", - "select_target_Imp": "Impulse (N)", - "select_target_Tau0": "Tractive force (Pa)" + "TARGET_none": "None", + "TARGET_Hs": "Head (m)", + "TARGET_Hsc": "Critical head (m)", + "TARGET_B": "Surface width (m)", + "TARGET_P": "Wetted perimeter (m)", + "TARGET_S": "Wetted area (m2)", + "TARGET_R": "Hydraulic radius (m)", + "TARGET_V": "Average speed (m/s)", + "TARGET_Fr": "Froude number", + "TARGET_Yc": "Critical depth (m)", + "TARGET_Yn": "Normal depth (m)", + "TARGET_Ycor": "Corresponding depth (m)", + "TARGET_Ycon": "Conjugate depth (m)", + "TARGET_J": "Head loss (m)", + "TARGET_I-J": "Linear variation of specific head (m/m)", + "TARGET_Imp": "Impulse (N)", + "TARGET_Tau0": "Tractive force (Pa)" } \ No newline at end of file diff --git a/src/app/calculators/courberemous/fr.json b/src/app/calculators/courberemous/fr.json index 3d9bfd7ee8898c11806a7e2b600ae6f96d8b033c..3c84085311c6e37a869ee147787790da653b15d4 100644 --- a/src/app/calculators/courberemous/fr.json +++ b/src/app/calculators/courberemous/fr.json @@ -2,10 +2,10 @@ "fs_section": "Type de section", "select_section": "Choix du type de section", - "select_section_2": "Trapézoïdale", - "select_section_1": "Rectangulaire", - "select_section_0": "Circulaire", - "select_section_3": "Parabolique", + "SECTION_2": "Trapézoïdale", + "SECTION_1": "Rectangulaire", + "SECTION_0": "Circulaire", + "SECTION_3": "Parabolique", "LargeurFond": "Largeur au fond", "Fruit": "Fruit des berges", @@ -42,27 +42,27 @@ "UNIT_IMP": "N", "UNIT_TAU0": "Pa", - "select_resolution_0": "Intégration par trapèzes", - "select_resolution_1": "Runge Kutta d'ordre 4", - "select_resolution_2": "Euler explicite", + "RESOLUTION_0": "Intégration par trapèzes", + "RESOLUTION_1": "Runge Kutta d'ordre 4", + "RESOLUTION_2": "Euler explicite", "fs_target_data": "Donnée à calculer", "select_target": "Choix de la donnée à calculer", - "select_target_none": "Aucune", - "select_target_Hs": "La charge (m)", - "select_target_Hsc": "La charge critique (m)", - "select_target_B": "La largeur au miroir (m)", - "select_target_P": "Le périmètre mouillé (m)", - "select_target_S": "La surface mouillée (m2)", - "select_target_R": "Le rayon hydraulique (m)", - "select_target_V": "La vitesse moyenne (m/s)", - "select_target_Fr": "Le Froude", - "select_target_Yc": "Le tirant d'eau critique (m)", - "select_target_Yn": "Le tirant d'eau normal (m)", - "select_target_Ycor": "Le tirant d'eau correspondant (m)", - "select_target_Ycon": "Le tirant d'eau conjugué (m)", - "select_target_J": "La perte de charge (m)", - "select_target_I-J": "La variation linéaire de l'énergie spécifique (m/m)", - "select_target_Imp": "L'impulsion (N)", - "select_target_Tau0": "La force tractrice (Pa)" + "TARGET_none": "Aucune", + "TARGET_Hs": "La charge (m)", + "TARGET_Hsc": "La charge critique (m)", + "TARGET_B": "La largeur au miroir (m)", + "TARGET_P": "Le périmètre mouillé (m)", + "TARGET_S": "La surface mouillée (m2)", + "TARGET_R": "Le rayon hydraulique (m)", + "TARGET_V": "La vitesse moyenne (m/s)", + "TARGET_Fr": "Le Froude", + "TARGET_Yc": "Le tirant d'eau critique (m)", + "TARGET_Yn": "Le tirant d'eau normal (m)", + "TARGET_Ycor": "Le tirant d'eau correspondant (m)", + "TARGET_Ycon": "Le tirant d'eau conjugué (m)", + "TARGET_J": "La perte de charge (m)", + "TARGET_I-J": "La variation linéaire de l'énergie spécifique (m/m)", + "TARGET_Imp": "L'impulsion (N)", + "TARGET_Tau0": "La force tractrice (Pa)" } \ No newline at end of file diff --git a/src/app/calculators/grille/config.json b/src/app/calculators/grille/config.json index c19b2bb123e368ec9c50826a4df578d1e72cff56..c6c10b5a2835e74bbb141886681065a941a46fa3 100644 --- a/src/app/calculators/grille/config.json +++ b/src/app/calculators/grille/config.json @@ -19,7 +19,7 @@ "type": "fieldset", "fields": [ { - "id": "select_grid_type", + "id": "select_gridtype", "type": "select", "property": "gridType", "default": "Conventional", @@ -46,7 +46,7 @@ "type": "fieldset", "fields": [ { - "id": "select_grid_profile", + "id": "select_gridprofile", "type": "select", "property": "gridProfile", "default": "Rectangular", @@ -91,7 +91,7 @@ }, { "type": "options", - "selectIds": [ "select_grid_type", "select_grid_profile" ], + "selectIds": [ "select_gridtype", "select_gridprofile" ], "help": "devalaison/grille.html", "resultsHelp": { "VAPDG": "devalaison/grille.html#vitesse-dapproche-moyenne-pour-le-debit-maximum-turbine-en-soustrayant-la-partie-superieure-eventuellement-obturee", diff --git a/src/app/calculators/grille/en.json b/src/app/calculators/grille/en.json index 0da9b3a88edccb16daafa9087bc4f0f77c3196d8..5b57793c079011e7055cfa75107ea1a8e1d60d7b 100644 --- a/src/app/calculators/grille/en.json +++ b/src/app/calculators/grille/en.json @@ -19,16 +19,16 @@ "OEntH": "Effective obstruction due to spacers and transversal elements", "cIncl": "Average shape coefficient of spacers and transversal elements", - "select_grid_type": "Grid type", - "select_grid_profile": "Bars profile", + "select_gridtype": "Grid type", + "select_gridprofile": "Bars profile", - "select_grid_type_0": "Conventional", - "select_grid_type_1": "Oriented", - "select_grid_type_2": "Inclined", + "GRIDTYPE_0": "Conventional", + "GRIDTYPE_1": "Oriented", + "GRIDTYPE_2": "Inclined", - "select_grid_profile_0": "Rectangular", - "select_grid_profile_1": "Hydrodynamic", - "select_grid_profile_2": "Custom", + "GRIDPROFILE_0": "Rectangular", + "GRIDPROFILE_1": "Hydrodynamic", + "GRIDPROFILE_2": "Custom", "H": "Water height", "HG": "Grid height", diff --git a/src/app/calculators/grille/fr.json b/src/app/calculators/grille/fr.json index c62ddaca80f1a0ddaf0d49d9af91a5fee3a67dfb..f575fc88ee6a158e36ecc0507abe9b8b6ed29c93 100644 --- a/src/app/calculators/grille/fr.json +++ b/src/app/calculators/grille/fr.json @@ -19,16 +19,16 @@ "OEntH": "Obstruction effective due aux entretoises et éléments transversaux", "cIncl": "Coefficient de forme moyen des entretoises et éléments transversaux", - "select_grid_type": "Type de grille", - "select_grid_profile": "Profil des barreaux", + "select_gridtype": "Type de grille", + "select_gridprofile": "Profil des barreaux", - "select_grid_type_0": "Conventionnelle", - "select_grid_type_1": "Orientée", - "select_grid_type_2": "Inclinée", + "GRIDTYPE_0": "Conventionnelle", + "GRIDTYPE_1": "Orientée", + "GRIDTYPE_2": "Inclinée", - "select_grid_profile_0": "Rectangulaire", - "select_grid_profile_1": "Hydrodynamique", - "select_grid_profile_2": "Personnalisé", + "GRIDPROFILE_0": "Rectangulaire", + "GRIDPROFILE_1": "Hydrodynamique", + "GRIDPROFILE_2": "Personnalisé", "H": "Hauteur d'eau", "HG": "Hauteur de grille", diff --git a/src/app/calculators/macrorugocompound/config.json b/src/app/calculators/macrorugocompound/config.json index 537212cd0c90a8c790895b331771e2d6c5984226..545f893452dde6be361c89b9ab5ec06d58dfd46c 100644 --- a/src/app/calculators/macrorugocompound/config.json +++ b/src/app/calculators/macrorugocompound/config.json @@ -33,7 +33,7 @@ "type": "fieldset", "fields": [ { - "id": "select_pass_type", + "id": "select_passtype", "type": "select", "property": "inclinedApron" }, @@ -61,7 +61,7 @@ { "type": "options", "idCal": "Q", - "selectIds": [ "select_pass_type" ], + "selectIds": [ "select_passtype" ], "help": "pam/macrorugo_complexe.html" } ] \ No newline at end of file diff --git a/src/app/calculators/macrorugocompound/en.json b/src/app/calculators/macrorugocompound/en.json index 683533dec944ce6792205bf4511cb75d5fb52e69..4c2a222131c5f7447775d72a2c872a718c1bc6e1 100644 --- a/src/app/calculators/macrorugocompound/en.json +++ b/src/app/calculators/macrorugocompound/en.json @@ -6,7 +6,7 @@ "macrorugo_container": "Aprons", "fs_macrorugo": "Apron", - "select_pass_type": "Pass type", + "select_passtype": "Pass type", "If": "Slope", "Ks": "Bottom roughness", "C": "Block concentration", @@ -21,8 +21,8 @@ "Y": "Water depth", "xCenter": "Mid-apron abscissa", - "select_pass_type_0": "Multiple aprons", - "select_pass_type_1": "Inclined apron", + "PASSTYPE_0": "Multiple aprons", + "PASSTYPE_1": "Inclined apron", "UNIT_Q": "m³/s", "UNIT_PV": "W/m³", diff --git a/src/app/calculators/macrorugocompound/fr.json b/src/app/calculators/macrorugocompound/fr.json index 455b4aa008d2543bb323f1a74b1ee59ff7de9f19..d72e543e693597baa988550b2587bc853e5bb86d 100644 --- a/src/app/calculators/macrorugocompound/fr.json +++ b/src/app/calculators/macrorugocompound/fr.json @@ -6,7 +6,7 @@ "macrorugo_container": "Radiers", "fs_macrorugo": "Radier", - "select_pass_type": "Type de passe", + "select_passtype": "Type de passe", "If": "Pente", "Ks": "Rugosité de fond", "C": "Concentration de blocs", @@ -21,8 +21,8 @@ "Y": "Profondeur", "xCenter": "Abscisse du milieu du radier", - "select_pass_type_0": "Radiers multiples", - "select_pass_type_1": "Radier incliné", + "PASSTYPE_0": "Radiers multiples", + "PASSTYPE_1": "Radier incliné", "UNIT_Q": "m³/s", "UNIT_PV": "W/m³", diff --git a/src/app/calculators/regimeuniforme/en.json b/src/app/calculators/regimeuniforme/en.json index 9ecd418c4909d5fdbe4f515bbe8b2d836c52c45e..88f2143d81e9e05fd796f32df2ba10e9d8897c2a 100644 --- a/src/app/calculators/regimeuniforme/en.json +++ b/src/app/calculators/regimeuniforme/en.json @@ -2,10 +2,10 @@ "fs_section": "Type of section", "select_section": "Choice of section type", - "select_section_2": "Trapezoidal", - "select_section_1": "Rectangular", - "select_section_0": "Circular", - "select_section_3": "Parabolic", + "SECTION_2": "Trapezoidal", + "SECTION_1": "Rectangular", + "SECTION_0": "Circular", + "SECTION_3": "Parabolic", "LargeurFond": "Width at bottom", "Fruit": "Bank slope", diff --git a/src/app/calculators/regimeuniforme/fr.json b/src/app/calculators/regimeuniforme/fr.json index 297cf402a8d978cad4e248dd412a6cb2791400e6..84787f04e74b6b8c1ba9ee9ce3053dc47f3cad14 100644 --- a/src/app/calculators/regimeuniforme/fr.json +++ b/src/app/calculators/regimeuniforme/fr.json @@ -2,10 +2,10 @@ "fs_section": "Type de section", "select_section": "Choix du type de section", - "select_section_2": "Trapézoïdale", - "select_section_1": "Rectangulaire", - "select_section_0": "Circulaire", - "select_section_3": "Parabolique", + "SECTION_2": "Trapézoïdale", + "SECTION_1": "Rectangulaire", + "SECTION_0": "Circulaire", + "SECTION_3": "Parabolique", "LargeurFond": "Largeur au fond", "Fruit": "Fruit des berges", diff --git a/src/app/calculators/sectionparametree/en.json b/src/app/calculators/sectionparametree/en.json index 29699a3a182172df3639c08693104b739e84453d..8e5b6226c30dfca094878fb18041a7d038321406 100644 --- a/src/app/calculators/sectionparametree/en.json +++ b/src/app/calculators/sectionparametree/en.json @@ -2,10 +2,10 @@ "fs_section": "Type of section", "select_section": "Choice of section type", - "select_section_2": "Trapezoidal", - "select_section_1": "Rectangular", - "select_section_0": "Circular", - "select_section_3": "Parabolic", + "SECTION_2": "Trapezoidal", + "SECTION_1": "Rectangular", + "SECTION_0": "Circular", + "SECTION_3": "Parabolic", "LargeurFond": "Width at bottom", "Fruit": "Bank slope", diff --git a/src/app/calculators/sectionparametree/fr.json b/src/app/calculators/sectionparametree/fr.json index 12e0163632b0951d44b779a185526a0979f2c4f3..2615fd823301a458f6c5fdaa07d80889c2d22b9d 100644 --- a/src/app/calculators/sectionparametree/fr.json +++ b/src/app/calculators/sectionparametree/fr.json @@ -2,10 +2,10 @@ "fs_section": "Type de section", "select_section": "Choix du type de section", - "select_section_2": "Trapézoïdale", - "select_section_1": "Rectangulaire", - "select_section_0": "Circulaire", - "select_section_3": "Parabolique", + "SECTION_2": "Trapézoïdale", + "SECTION_1": "Rectangulaire", + "SECTION_0": "Circulaire", + "SECTION_3": "Parabolique", "LargeurFond": "Largeur au fond", "Fruit": "Fruit des berges", diff --git a/src/app/calculators/spp/config.json b/src/app/calculators/spp/config.json index 1a20f3cf15e242a781d2d3a06713eaf5cfa9937e..04a567ebbe34cce6e982fa107870ac539b5aec4c 100644 --- a/src/app/calculators/spp/config.json +++ b/src/app/calculators/spp/config.json @@ -4,7 +4,7 @@ "type": "fieldset", "fields": [ { - "id": "select_spp_operation", + "id": "select_sppoperation", "type": "select", "property": "sppOperation", "default": "SUM" @@ -32,7 +32,7 @@ { "type": "options", "idCal": "Y", - "selectIds": [ "select_spp_operation" ], + "selectIds": [ "select_sppoperation" ], "_help": "util/spp.html" } ] \ No newline at end of file diff --git a/src/app/calculators/spp/en.json b/src/app/calculators/spp/en.json index cbc4a10f3562024223f4537006b243e6b316b3ec..faa569be485addfc746f3128fd709fb6aec4e252 100644 --- a/src/app/calculators/spp/en.json +++ b/src/app/calculators/spp/en.json @@ -1,9 +1,9 @@ { "fs_spp": "Parameters", - "select_spp_operation": "Operation", - "select_spp_operation_0": "Sum", - "select_spp_operation_1": "Product", + "select_sppoperation": "Operation", + "SPPOPERATION_0": "Sum", + "SPPOPERATION_1": "Product", "Y": "Y", diff --git a/src/app/calculators/spp/fr.json b/src/app/calculators/spp/fr.json index dd2ae4c5b2f68fead14d3e1e64e0ec221cdd1237..f4de7fb40a80758a0acea18c589a56a87bf9edff 100644 --- a/src/app/calculators/spp/fr.json +++ b/src/app/calculators/spp/fr.json @@ -1,9 +1,9 @@ { "fs_spp": "Paramètres", - "select_spp_operation": "Opération", - "select_spp_operation_0": "Somme", - "select_spp_operation_1": "Produit", + "select_sppoperation": "Opération", + "SPPOPERATION_0": "Somme", + "SPPOPERATION_1": "Produit", "Y": "Y", diff --git a/src/app/calculators/trigo/en.json b/src/app/calculators/trigo/en.json index 9208d6dcaed2d4670e24fe0729678c00fac881dc..90e4f849eb92cc299d4c622e35c27b5c503044c0 100644 --- a/src/app/calculators/trigo/en.json +++ b/src/app/calculators/trigo/en.json @@ -2,16 +2,16 @@ "fs_trigo": "Trigonometric parameters", "select_operation": "Operation", - "select_operation_0": "cos", - "select_operation_1": "sin", - "select_operation_2": "tan", - "select_operation_3": "cosh", - "select_operation_4": "sinh", - "select_operation_5": "tanh", + "OPERATION_0": "cos", + "OPERATION_1": "sin", + "OPERATION_2": "tan", + "OPERATION_3": "cosh", + "OPERATION_4": "sinh", + "OPERATION_5": "tanh", "select_unit": "Unit", - "select_unit_0": "Degrees", - "select_unit_1": "Radians", + "UNIT_0": "Degrees", + "UNIT_1": "Radians", "fs_params": "Equation parameters", diff --git a/src/app/calculators/trigo/fr.json b/src/app/calculators/trigo/fr.json index 15c5a8a4eaaeb08f0ba37d9cc332e6e2c8a4b52d..2135546caa42d5b026125a2fac09630fb124c117 100644 --- a/src/app/calculators/trigo/fr.json +++ b/src/app/calculators/trigo/fr.json @@ -2,16 +2,16 @@ "fs_trigo": "Paramètres trigonométriques", "select_operation": "Opération", - "select_operation_0": "cos", - "select_operation_1": "sin", - "select_operation_2": "tan", - "select_operation_3": "cosh", - "select_operation_4": "sinh", - "select_operation_5": "tanh", + "OPERATION_0": "cos", + "OPERATION_1": "sin", + "OPERATION_2": "tan", + "OPERATION_3": "cosh", + "OPERATION_4": "sinh", + "OPERATION_5": "tanh", "select_unit": "Unité", - "select_unit_0": "Degrés", - "select_unit_1": "Radians", + "UNIT_0": "Degrés", + "UNIT_1": "Radians", "fs_params": "Paramètres de l'équation",