-
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.
test formulaire partie 'information contact' + 'votre besoin CN'
- Loading branch information
1 parent
19cd8e3
commit 7b26124
Showing
6 changed files
with
188 additions
and
6 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
36 changes: 36 additions & 0 deletions
36
src/views/candidature-structure/BesoinEnConseillerNumerique.jsx
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
|
||
import BoutonRadio from '../../components/commun/BoutonRadio'; | ||
import Datepicker from '../../components/commun/Datepicker'; | ||
import Input from '../../components/commun/Input'; | ||
import PropTypes from 'prop-types'; | ||
|
||
export default function BesoinEnConseillerNumerique({ setDateAccueilConseillerNumerique }) { | ||
return ( | ||
<fieldset className="fr-border cc-section fr-p-3w fr-mb-3w" id="votre-besoin-en-conseiller-numerique"> | ||
<legend className="fr-h5">Votre besoin en conseiller(s) numérique(s)</legend> | ||
<hr /> | ||
<Input id="nombreConseillersSouhaites" type="number"> | ||
Combien de conseillers numériques souhaitez-vous accueillir ?<span className="cc-obligatoire">*</span> | ||
</Input> | ||
<hr /> | ||
<p className="fr-mb-3w cc-bold">Avez-vous déjà identifié un candidat pour le poste de conseiller numérique ?<span className="cc-obligatoire">*</span></p> | ||
<p className="fr-text--sm fr-hint-text">Si oui, merci d’inviter ce candidat à s’inscrire sur la plateforme Conseiller numérique</p> | ||
<BoutonRadio id="oui" nomGroupe="identificationCandidat"> | ||
Oui | ||
</BoutonRadio> | ||
<BoutonRadio id="non" nomGroupe="identificationCandidat"> | ||
Non | ||
</BoutonRadio> | ||
<hr /> | ||
<p className="fr-mb-3w cc-bold">À partir de quand êtes vous prêt à accueillir votre conseiller numerique ?<span className="cc-obligatoire">*</span></p> | ||
<Datepicker id="choisir-date" onChange={event => setDateAccueilConseillerNumerique(event.target.value)}> | ||
Choisir une date | ||
</Datepicker> | ||
</fieldset > | ||
); | ||
} | ||
|
||
BesoinEnConseillerNumerique.propTypes = { | ||
setDateAccueilConseillerNumerique: PropTypes.func, | ||
}; |
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,12 +1,27 @@ | ||
import React from 'react'; | ||
import React, { useState } from 'react'; | ||
import Sommaire from './Sommaire'; | ||
import InformationsDeContact from './InformationsDeContact'; | ||
import BesoinEnConseillerNumerique from './BesoinEnConseillerNumerique'; | ||
|
||
export default function CandidatureStructure() { | ||
const [dateAccueilConseillerNumerique, setDateAccueilConseillerNumerique] = useState(); | ||
|
||
return ( | ||
<div> | ||
<h1>Je souhaite engager un conseiller numérique</h1> | ||
<p className="fr-text--sm fr-hint-text">Les champs avec <span className="cc-obligatoire">*</span> sont obligatoires.</p> | ||
<Sommaire /> | ||
<div className="fr-container fr-mt-5w fr-mb-5w"> | ||
<div className="fr-grid-row"> | ||
<div className="fr-col-12 fr-col-md-4"> | ||
<Sommaire /> | ||
</div> | ||
<div className="fr-col-12 fr-col-md-8 fr-py-12v"> | ||
<h1 className="cc-titre fr-mb-5w">Je souhaite engager un conseiller numérique</h1> | ||
<p className="fr-text--sm fr-hint-text">Les champs avec <span className="cc-obligatoire">*</span> sont obligatoires.</p> | ||
<form aria-label="Candidature structure" > | ||
{/* TODO : Vos informations de structure */} | ||
<InformationsDeContact /> | ||
<BesoinEnConseillerNumerique setDateAccueilConseillerNumerique={setDateAccueilConseillerNumerique} /> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from 'react'; | ||
import Input from '../../components/commun/Input'; | ||
|
||
export default function InformationsDeContact() { | ||
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" | ||
> | ||
Prénom <span className="cc-obligatoire">*</span> | ||
</Input> | ||
<Input | ||
id="nom" | ||
> | ||
Nom <span className="cc-obligatoire">*</span> | ||
</Input> | ||
<Input | ||
id="fonction" | ||
> | ||
Fonction <span className="cc-obligatoire">*</span> | ||
</Input> | ||
<Input | ||
id="email" | ||
type="email" | ||
> | ||
Adresse e-mail <span className="cc-obligatoire">*</span> | ||
</Input> | ||
<Input | ||
id="telephone" | ||
type="tel" | ||
pattern="0[1-9]{9}" | ||
> | ||
Téléphone <span className="cc-obligatoire">*</span> | ||
</Input> | ||
</fieldset> | ||
); | ||
} |
12 changes: 12 additions & 0 deletions
12
src/views/candidature-structure/PageCandidatureStructure.jsx
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import Header from '../../components/Header'; | ||
import CandidatureStructure from './CandidatureStructure'; | ||
|
||
export default function PageCandidatureStructure() { | ||
return ( | ||
<> | ||
<Header /> | ||
<CandidatureStructure /> | ||
</> | ||
); | ||
} |