DSFR v1.13.0

Retour

Bloc fonctionnel de date unique (date)

Le champ de saisie de date fixe reprend trois champs de saisie de texte.

Documentation

Défaut

Date de naissance Indication : texte de description additionnel

<fieldset class="fr-fieldset" id="date-632" aria-labelledby="date-632-legend date-632-messages">
    <legend class="fr-fieldset__legend--regular fr-fieldset__legend" id="date-632-legend">
        Date de naissance
        <span class="fr-hint-text">Indication : texte de description additionnel</span>
    </legend>
    <div class="fr-fieldset__element fr-fieldset__element--inline fr-fieldset__element--number">
        <div class="fr-input-group" id="input-group-633">
            <label class="fr-label" for="date-632-bday-day">
                Jour
                <span class="fr-hint-text">Exemple : 14</span>
            </label>
            <input class="fr-input" name="day" autocomplete="bday-day" id="date-632-bday-day" type="text">
        </div>
    </div>
    <div class="fr-fieldset__element fr-fieldset__element--inline fr-fieldset__element--number">
        <div class="fr-input-group" id="input-group-634">
            <label class="fr-label" for="date-632-bday-month">
                Mois
                <span class="fr-hint-text">Exemple : 12</span>
            </label>
            <input class="fr-input" name="month" autocomplete="bday-month" id="date-632-bday-month" type="text">
        </div>
    </div>
    <div class="fr-fieldset__element fr-fieldset__element--inline fr-fieldset__element--inline-grow fr-fieldset__element--year">
        <div class="fr-input-group" id="input-group-635">
            <label class="fr-label" for="date-632-bday-year">
                Année
                <span class="fr-hint-text">Exemple : 1984</span>
            </label>
            <input class="fr-input" name="year" autocomplete="bday-year" id="date-632-bday-year" type="text">
        </div>
    </div>
    <div class="fr-messages-group" id="date-632-messages" aria-live="polite">
    </div>
</fieldset>

Erreur unitaire

Date de naissance Indication : texte de description additionnel

Le jour est invalide

Le mois est invalide

L’année est invalide

<fieldset class="fr-fieldset fr-fieldset--error" id="date-error-641" role="group" aria-labelledby="date-error-641-legend date-error-641-messages">
    <legend class="fr-fieldset__legend--regular fr-fieldset__legend" id="date-error-641-legend">
        Date de naissance
        <span class="fr-hint-text">Indication : texte de description additionnel</span>
    </legend>
    <div class="fr-fieldset__element fr-fieldset__element--inline fr-fieldset__element--number">
        <div class="fr-input-group" id="input-group-642">
            <label class="fr-label" for="date-error-641-bday-day">
                Jour
                <span class="fr-hint-text">Exemple : 14</span>
            </label>
            <input class="fr-input" name="day" value="00" autocomplete="bday-day" id="date-error-641-bday-day" type="text">
        </div>
    </div>
    <div class="fr-fieldset__element fr-fieldset__element--inline fr-fieldset__element--number">
        <div class="fr-input-group" id="input-group-643">
            <label class="fr-label" for="date-error-641-bday-month">
                Mois
                <span class="fr-hint-text">Exemple : 12</span>
            </label>
            <input class="fr-input" name="month" value="13" autocomplete="bday-month" id="date-error-641-bday-month" type="text">
        </div>
    </div>
    <div class="fr-fieldset__element fr-fieldset__element--inline fr-fieldset__element--inline-grow fr-fieldset__element--year">
        <div class="fr-input-group" id="input-group-644">
            <label class="fr-label" for="date-error-641-bday-year">
                Année
                <span class="fr-hint-text">Exemple : 1984</span>
            </label>
            <input class="fr-input" name="year" value="1995e" autocomplete="bday-year" id="date-error-641-bday-year" type="text">
        </div>
    </div>
    <div class="fr-messages-group" id="date-error-641-messages" aria-live="polite">
        <p class="fr-message fr-message--error" id="date-error-641-message-error-1">Le jour est invalide</p>
        <p class="fr-message fr-message--error" id="date-error-641-message-error-2">Le mois est invalide</p>
        <p class="fr-message fr-message--error" id="date-error-641-message-error-3">L’année est invalide</p>
    </div>
</fieldset>

Erreur globale

Date de naissance Indication : texte de description additionnel

La date est postérieure à aujourd’hui

<fieldset class="fr-fieldset fr-fieldset--error" id="date-error-650" role="group" aria-labelledby="date-error-650-legend date-error-650-messages">
    <legend class="fr-fieldset__legend--regular fr-fieldset__legend" id="date-error-650-legend">
        Date de naissance
        <span class="fr-hint-text">Indication : texte de description additionnel</span>
    </legend>
    <div class="fr-fieldset__element fr-fieldset__element--inline fr-fieldset__element--number">
        <div class="fr-input-group" id="input-group-651">
            <label class="fr-label" for="date-error-650-bday-day">
                Jour
                <span class="fr-hint-text">Exemple : 14</span>
            </label>
            <input class="fr-input" name="day" value="03" autocomplete="bday-day" id="date-error-650-bday-day" type="text">
        </div>
    </div>
    <div class="fr-fieldset__element fr-fieldset__element--inline fr-fieldset__element--number">
        <div class="fr-input-group" id="input-group-652">
            <label class="fr-label" for="date-error-650-bday-month">
                Mois
                <span class="fr-hint-text">Exemple : 12</span>
            </label>
            <input class="fr-input" name="month" value="03" autocomplete="bday-month" id="date-error-650-bday-month" type="text">
        </div>
    </div>
    <div class="fr-fieldset__element fr-fieldset__element--inline fr-fieldset__element--inline-grow fr-fieldset__element--year">
        <div class="fr-input-group" id="input-group-653">
            <label class="fr-label" for="date-error-650-bday-year">
                Année
                <span class="fr-hint-text">Exemple : 1984</span>
            </label>
            <input class="fr-input" name="year" value="2525" autocomplete="bday-year" id="date-error-650-bday-year" type="text">
        </div>
    </div>
    <div class="fr-messages-group" id="date-error-650-messages" aria-live="polite">
        <p class="fr-message fr-message--error" id="date-error-650-message-error">La date est postérieure à aujourd’hui</p>
    </div>
</fieldset>

Paramètres d’affichage

Choisissez un thème pour personnaliser l’apparence du site.