-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ajout de tooltip sur l'email lors de l'inscription de CFA (#3355)
- Loading branch information
Showing
2 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ import { | |
RadioGroup, | ||
Spinner, | ||
Text, | ||
Tooltip, | ||
} from "@chakra-ui/react"; | ||
import { Field, Form, Formik } from "formik"; | ||
import { useRouter } from "next/router"; | ||
|
@@ -302,8 +303,45 @@ function ProfileForm({ organisation, fixedEmail }: { organisation: Organisation; | |
isInvalid={meta.error && meta.touched} | ||
isDisabled={fixedEmail !== ""} | ||
> | ||
<FormLabel>Votre courriel</FormLabel> | ||
<Input {...field} id={field.name} placeholder="Ex : [email protected]" /> | ||
<FormLabel> | ||
Votre courriel | ||
<Tooltip | ||
background="bluefrance" | ||
color="white" | ||
label={ | ||
<Box padding="1w"> | ||
<Text as="p"> | ||
Pour des raisons de sécurité, merci d'utiliser un email nominatif professionnel lié à | ||
votre organisation. | ||
</Text> | ||
<Text as="p" mt="4"> | ||
Exemples : [email protected] ou équivalent. | ||
</Text> | ||
<Text as="p" mt="4"> | ||
Nous ne pouvons pas valider les emails (@gmail, @hotmail, @orange, etc.), ni les mails | ||
génériques (contact@, apprentissage@...). | ||
</Text> | ||
<Text as="p" mt="4"> | ||
Si cela vous est impossible, merci de nous contacter à | ||
[email protected]. | ||
</Text> | ||
</Box> | ||
} | ||
aria-label="Pour des raisons de sécurité, merci d'utiliser un email nominatif professionnel lié à votre organisation. | ||
Exemples : [email protected] ou équivalent. Nous ne pouvons pas valider les emails (@gmail, @hotmail, @orange, etc.), ni les mails génériques (contact@, apprentissage@...). | ||
Si cela vous est impossible, merci de nous contacter à [email protected]." | ||
> | ||
<Box | ||
as="i" | ||
className="ri-error-warning-line" | ||
fontSize="epsilon" | ||
color="red.500" | ||
marginLeft="1w" | ||
verticalAlign="middle" | ||
/> | ||
</Tooltip> | ||
</FormLabel> | ||
<Input {...field} id={field.name} placeholder="Ex : [email protected]" /> | ||
<FormErrorMessage>{meta.error}</FormErrorMessage> | ||
</FormControl> | ||
)} | ||
|