Skip to content

Commit

Permalink
fix: maj wording widget (#1770)
Browse files Browse the repository at this point in the history
* fix: maj wording widget

Suite aux échanges en IRL et aux suggestions proposées sur Slack
https://mission-apprentissage.slack.com/archives/C037H6Y44S2/p1736947801031009

* Update CreationCompte.tsx

* Update InformationCreationCompte.tsx

* Update InformationCreationCompte.tsx

Je ne comprends pas à quel moment est affiché le texte "L’email que nous utilisons est fourni par votre Carif Oref, et permet de vous connecter. Vous pourrez le modifier dans votre espace personnel.", preneuse d'un éclairage sur le sujet

* Update CreationCompte.tsx

* fix: cleaning

* fix: prettier

* Update CreationCompte.tsx

---------

Co-authored-by: Alan Le Ruyet <[email protected]>
  • Loading branch information
guilletmarion and alanlr authored Feb 6, 2025
1 parent db6d554 commit 6903b21
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 42 deletions.
6 changes: 3 additions & 3 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fileignoreconfig:
- filename: server/src/services/__snapshots__/formulaire.service.test.ts.snap
checksum: 71d9956fd03fcec52d37b3799fc5bc806d42ec40200254b1740819b3d5a2b0d1
- filename: server/src/services/__snapshots__/partnerJob.service.test.ts.snap
checksum: 1609ab1239e5a00a5d8ace34b0f1db49b2aea52d9abe76fc1f32c36ce9b34510
checksum: 6f190e19172481706181e0a13ed7de5f0f6c699f86d35d9b08071ece445920b1
- filename: server/src/services/application.service.test.ts
checksum: d11d73a73ed489475d6a2f7dd693787fc71a7dfd9150bb88cec4f88c92c19d02
- filename: server/src/services/application.service.ts
Expand Down Expand Up @@ -117,6 +117,8 @@ fileignoreconfig:
checksum: 53067858567e2878f5f65da06be9efc6902a691b36299167d54343ab30162e49
- filename: server/static/templates/mail-candidat-offre-emploi-lba.mjml.ejs
checksum: 3188f43c847d071acfb7a366748647ab88d821abb3e022830b82fd092db90f83
- filename: server/static/templates/mail-candidat-offre-emploi-partenaire.mjml.ejs
checksum: 092f871d48fc0602f5f90bb239defbf809aedab35f347f83fd0fdc97a6359abf
- filename: server/static/templates/mail-candidat-recruteur-lba.mjml.ejs
checksum: 0b806bca197dba97415902339e84f924cb45dae766cf8d3cfc47d80d2bdd203c
- filename: server/static/templates/mail-candidat-refus.mjml.ejs
Expand Down Expand Up @@ -269,8 +271,6 @@ fileignoreconfig:
checksum: 324cd501354cfff65447c2599c4cc8966aa8aac30dda7854623dd6f7f7b0d34e
- filename: yarn.lock
checksum: 21c8c4f9064194196622ad215768893c1756eec1cbc175efffcb1428d8821c9f
- filename: server/static/templates/mail-candidat-offre-emploi-partenaire.mjml.ejs
checksum: 092f871d48fc0602f5f90bb239defbf809aedab35f347f83fd0fdc97a6359abf
scopeconfig:
- scope: node
custom_patterns:
Expand Down
7 changes: 1 addition & 6 deletions ui/components/espace_pro/Authentification/CreationCompte.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,9 @@ export default function CreationCompte({ type, isWidget = false, origin = "lba"
{bandeau && <Bandeau {...bandeau} />}
<SimpleGrid columns={[1, 1, 2, 2]} spacing={[0, 0, 4, 4]} mt={wid.isWidget ? 0 : { base: 4, md: 12 }}>
<Box mb={4}>
{wid.isWidget && (
<Text textTransform="uppercase" fontSize="20px" color="#666666">
Dépot simplifié d'offre en alternance
</Text>
)}
<Heading className="big">Vous recrutez des alternants ?</Heading>
<Text className="big" mt={2} mb={4}>
Précisez le nom ou le numéro de SIRET de votre établissement.
Pour diffuser gratuitement vos offres, précisez le nom ou le SIRET de votre établissement.
</Text>
<CreationCompteForm organisationType={organisationType} setBandeau={setBandeau} origin={origin} isWidget={isWidget} onSelectOrganisation={onSelectOrganisation} />
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,7 @@ const Formulaire = ({ submitForm }) => {
<>
<CustomInput required={false} name="last_name" label="Nom" type="text" value={values.last_name} />
<CustomInput required={false} name="first_name" label="Prénom" type="text" value={values.first_name} />
<CustomInput
required={false}
name="phone"
label="Numéro de téléphone"
type="tel"
pattern="[0-9]{10}"
maxLength="10"
helper={
type === AUTHTYPE.ENTREPRISE
? "Le numéro de téléphone sera visible sur l'offre d'emploi"
: "Le numéro de téléphone sera visible sur l’offre d’emploi de vos entreprises partenaires"
}
value={values.phone}
/>
<CustomInput required={false} name="phone" label="Numéro de téléphone" type="tel" pattern="[0-9]{10}" maxLength="10" value={values.phone} />
<CustomInput
sx={{ textTransform: "lowercase" }}
required={false}
Expand All @@ -82,7 +69,7 @@ const Formulaire = ({ submitForm }) => {
info={
email
? "L’email que nous utilisons est fourni par votre Carif Oref, et permet de vous connecter. Vous pourrez le modifier dans votre espace personnel."
: "Il s’agit de l’adresse qui vous permettra de vous connecter à votre compte. Privilégiez votre adresse professionnelle"
: "Privilégiez votre adresse professionnelle"
}
/>
{shouldSelectOpco && (
Expand Down Expand Up @@ -120,24 +107,20 @@ const Formulaire = ({ submitForm }) => {
}

const FormulaireLayout = ({ left, right }) => {
const { widget } = useContext(WidgetContext)
const router = useRouter()
const { type } = router.query

return (
<SimpleGrid columns={[1, 1, 2, 2]} spacing={4} mt={0}>
<Box>
{widget.isWidget && (
<Text textTransform="uppercase" fontSize="20px" color="#666666">
Dépot simplifié d'offre en alternance
</Text>
)}
<Heading>{type === AUTHTYPE.ENTREPRISE ? "Vos informations de contact" : "Créez votre compte"}</Heading>
<Text className="big" mt={2} mb={4}>
{type === AUTHTYPE.ENTREPRISE
? "Le numéro de téléphone et l'adresse postale de votre établissement seront visibles sur vos offres. L'email sera destinataire des candidatures."
: "Le numéro de téléphone et l'adresse postale de votre établissement seront visibles sur les offres de vos entreprises partenaires. L'email sera destinataire des candidatures."}
</Text>
<Box fontSize="20px" mb={4}>
<Text className="big" mt={2} mb={4}>
{type === AUTHTYPE.ENTREPRISE
? "Seul le numéro de téléphone sera visible sur vos offres. Vous recevrez les candidatures sur l'email renseigné."
: "Seul le numéro de téléphone sera visible sur les offres de vos entreprises partenaires. Vous recevrez les candidatures sur l'email renseigné."}
</Text>
</Box>
<Box>{left}</Box>
</Box>
<Box>{right}</Box>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Grid, Heading, Text } from "@chakra-ui/react"
import { Box, Grid, Heading } from "@chakra-ui/react"
import dayjs from "dayjs"
import { Formik } from "formik"
import { omit } from "lodash-es"
Expand Down Expand Up @@ -38,7 +38,6 @@ export const FormulaireCreationOffre = ({
)
const { rome } = romeAndAppellation ?? {}
const { user } = useAuth()
const { widget } = useContext(WidgetContext)
const router = useRouter()
const { establishment_id, email, userId, token } = router.query as { establishment_id: string; email: string; userId: string; type: string; token: string }

Expand Down Expand Up @@ -163,11 +162,6 @@ export const FormulaireCreationOffre = ({

return (
<>
{widget.isWidget && (
<Text textTransform="uppercase" fontSize="20px" color="#666666">
Dépot simplifié d'offre en alternance
</Text>
)}
<Formik
validateOnMount
enableReinitialize={true}
Expand Down

0 comments on commit 6903b21

Please sign in to comment.