Skip to content

Commit

Permalink
form validation en Enter ##2991
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeneuvrier committed Sep 23, 2024
1 parent 839fdd9 commit 44e442b
Show file tree
Hide file tree
Showing 33 changed files with 353 additions and 176 deletions.
63 changes: 42 additions & 21 deletions assets/json/Signalement/desordres_profile_occupant.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"label": "Suivant",
"slug": "ecran_intermediaire_les_desordres_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -296,7 +297,8 @@
"label": "Suivant",
"slug": "desordres_batiment_proprete_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -371,7 +373,8 @@
"label": "Suivant",
"slug": "desordres_batiment_eau_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -457,7 +460,8 @@
"label": "Suivant",
"slug": "desordres_batiment_isolation_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -527,7 +531,8 @@
"label": "Suivant",
"slug": "desordres_batiment_maintenance_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -646,7 +651,8 @@
"label": "Suivant",
"slug": "desordres_batiment_nuisibles_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -869,7 +875,8 @@
"label": "Suivant",
"slug": "desordres_batiment_securite_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -928,7 +935,8 @@
"label": "Suivant",
"slug": "desordres_batiment_incendie_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -1037,7 +1045,8 @@
"label": "Suivant",
"slug": "desordres_batiment_accessibilite_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -1096,7 +1105,8 @@
"label": "Suivant",
"slug": "desordres_batiment_bruit_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -1393,7 +1403,8 @@
"label": "Suivant",
"slug": "desordres_logement_eau_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -1506,7 +1517,8 @@
"label": "Suivant",
"slug": "desordres_logement_aeration_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -1737,7 +1749,8 @@
"label": "Suivant",
"slug": "desordres_logement_chauffage_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -2076,7 +2089,8 @@
"label": "Suivant",
"slug": "desordres_logement_humidite_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -2250,7 +2264,8 @@
"label": "Suivant",
"slug": "desordres_logement_securite_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -2374,7 +2389,8 @@
"label": "Suivant",
"slug": "desordres_logement_electricite_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -2579,7 +2595,8 @@
"label": "Suivant",
"slug": "desordres_logement_nuisibles_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -2656,7 +2673,8 @@
"label": "Suivant",
"slug": "desordres_logement_bruit_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -2733,7 +2751,8 @@
"label": "Suivant",
"slug": "desordres_logement_lumiere_next",
"action": "resolve.save:findNextScreen",
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line"
"customCss": "fr-btn--icon-right fr-icon-arrow-right-line",
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down Expand Up @@ -2795,7 +2814,8 @@
"customCss": "fr-mb-3v",
"conditional": {
"show": "formStore.hasDesordre('desordres_') === false"
}
},
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand All @@ -2815,7 +2835,8 @@
"customCss": "fr-mb-3v",
"conditional": {
"show": "formStore.hasDesordre('desordres_') === true"
}
},
"validOnEnter": true
},
{
"type": "SignalementFormButton",
Expand Down
Loading

0 comments on commit 44e442b

Please sign in to comment.