-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2023 - Ajout d'un champ adresse du candidat dans le formulaire de mini stage #2238
base: main
Are you sure you want to change the base?
Conversation
@@ -237,6 +238,15 @@ const beneficiarySummary = ( | |||
fields["signatories.beneficiary.birthdate"].label, | |||
displayDate(convention.signatories.beneficiary.birthdate), | |||
], | |||
...(convention.internshipKind === "mini-stage-cci" && | |||
convention.signatories.beneficiary.address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je n'ai pas trouvé d'autres moyens que ça pour pouvoir utiliser addressDtoToString
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
il y a déjà la condition convention.internshipKind === "mini-stage-cci"
juste en dessous (ligne 250), je pense que tu peux fusionner ton ajout avec
18ed3e5
to
495eac5
Compare
Review app: |
@@ -237,6 +238,15 @@ const beneficiarySummary = ( | |||
fields["signatories.beneficiary.birthdate"].label, | |||
displayDate(convention.signatories.beneficiary.birthdate), | |||
], | |||
...(convention.internshipKind === "mini-stage-cci" && | |||
convention.signatories.beneficiary.address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
il y a déjà la condition convention.internshipKind === "mini-stage-cci"
juste en dessous (ligne 250), je pense que tu peux fusionner ton ajout avec
@@ -76,6 +77,22 @@ export const minorBeneficiaryHasRepresentative = ({ | |||
); | |||
}; | |||
|
|||
export const shouldValidateBeneficiaryAddressAndParse = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const shouldValidateBeneficiaryAddressAndParse = ( | |
export const validateBeneficiaryAddressAndParse = ( |
"signatories.beneficiary.address": { | ||
label: "Adresse du candidat", | ||
id: beneficiarySectionIds.address, | ||
placeholder: "Ex : 10 Rue de la Paix, 75001 Paris", | ||
required: true, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ce champ est seulement obligatoire dans le cas où le bénéficiaire habite en Auvergne Rhône Alpe.
Donc je propose de mettre ici:
"signatories.beneficiary.address": { | |
label: "Adresse du candidat", | |
id: beneficiarySectionIds.address, | |
placeholder: "Ex : 10 Rue de la Paix, 75001 Paris", | |
required: true, | |
}, | |
"signatories.beneficiary.address": { | |
label: "Adresse du candidat", | |
hintText: "Si vous résidez en Auvergne Rhône Alpe, il est obligatoire de saisir votre adresse." | |
id: beneficiarySectionIds.address, | |
placeholder: "Ex : 10 Rue de la Paix, 75001 Paris", | |
}, |
Ce champ sera obligatoire à partir de la MEP de cette fonctionnalité (voir la date renseignée dans shouldValidateBeneficiaryAddressAndParse dans conventionRefinements.ts).
Après l'envoi de la convention par le bénéficiaire, l'adresse du candidat est visible dans :
la page de validation du conseiller :
le récapitulatif avant signature :
la convention au format pdf :