-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
78 additions
and
18 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
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
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 |
---|---|---|
@@ -1,25 +1,29 @@ | ||
import React from 'react'; | ||
import Input from '../../components/commun/Input'; | ||
import AddressChooser from './AddressChooser'; | ||
import PropTypes from 'prop-types'; | ||
|
||
export default function InformationsDeContact() { | ||
export default function InformationsDeContact({ errors }) { | ||
return ( | ||
<fieldset className="fr-border cc-section fr-p-3w fr-mb-3w" id="informations-de-contact"> | ||
<legend className="fr-h5">Vos informations de contact</legend> | ||
<hr /> | ||
<Input | ||
id="prenom" | ||
error={errors.prenom} | ||
> | ||
Prénom <span className="cc-obligatoire">*</span> | ||
</Input> | ||
<Input | ||
id="nom" | ||
error={errors.nom} | ||
> | ||
Nom <span className="cc-obligatoire">*</span> | ||
</Input> | ||
<Input | ||
id="email" | ||
type="email" | ||
error={errors.email} | ||
> | ||
Adresse électronique <span className="cc-obligatoire">*</span> <span className="fr-hint-text">Format attendu : [email protected]</span> | ||
</Input> | ||
|
@@ -28,10 +32,15 @@ export default function InformationsDeContact() { | |
type="tel" | ||
pattern="([+][0-9]{11,12})|([0-9]{10})" | ||
isRequired={false} | ||
error={errors.telephone} | ||
> | ||
Téléphone <span className="fr-hint-text">Format attendu : 0122334455 ou +33122334455</span> | ||
</Input> | ||
<AddressChooser /> | ||
<AddressChooser error={errors.lieuHabitation}/> | ||
</fieldset> | ||
); | ||
} | ||
|
||
InformationsDeContact.propTypes = { | ||
errors: PropTypes.object | ||
}; |
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 |
---|---|---|
@@ -1,17 +1,22 @@ | ||
import React from 'react'; | ||
import ZoneDeTexte from '../../components/commun/ZoneDeTexte'; | ||
import PropTypes from 'prop-types'; | ||
|
||
export default function Motivation() { | ||
export default function Motivation({ errors }) { | ||
return ( | ||
<fieldset className="fr-border cc-section fr-p-3w fr-mb-3w" id="votre-motivation"> | ||
<legend className="fr-h5" id="titreMotivation">Votre motivation</legend> | ||
<p className="fr-text--sm fr-hint-text"> | ||
En quelques lignes, décrivez votre motivation personnelle pour devenir conseiller numérique et{' '} | ||
aider les personnes à devenir autonomes dans l’utilisation des outils numériques. | ||
</p> | ||
<ZoneDeTexte id="motivation"> | ||
<ZoneDeTexte id="motivation" error={errors.motivation}> | ||
Votre message <span className="cc-obligatoire">*</span> <span className="fr-hint-text">Limité à 2500 caractères</span> | ||
</ZoneDeTexte> | ||
</fieldset> | ||
); | ||
} | ||
|
||
Motivation.propTypes = { | ||
errors: PropTypes.object | ||
}; |