Retour

Modèle de date unique (date)

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

Défaut

Date de naissance Texte de description additionnel

<fieldset class="fr-fieldset" id="date-6964" aria-labelledby="date-6964-legend date-6964-messages">
    <legend class="fr-fieldset__legend--regular fr-fieldset__legend" id="date-6964-legend">
        Date de naissance
        <span class="fr-hint-text">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-6965">
            <label class="fr-label" for="date-6964-bday-day">
                Jour
                <span class="fr-hint-text">Exemple : 14</span>
            </label>
            <input class="fr-input" name="day" autocomplete="bday-day" id="date-6964-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-6966">
            <label class="fr-label" for="date-6964-bday-month">
                Mois
                <span class="fr-hint-text">Exemple : 12</span>
            </label>
            <input class="fr-input" name="month" autocomplete="bday-month" id="date-6964-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-6967">
            <label class="fr-label" for="date-6964-bday-year">
                Année
                <span class="fr-hint-text">Exemple : 1984</span>
            </label>
            <input class="fr-input" name="year" autocomplete="bday-year" id="date-6964-bday-year" type="text">
        </div>
    </div>
    <div class="fr-messages-group" id="date-6964-messages" aria-live="assertive">
    </div>
</fieldset>

Erreur unitaire

Date de naissance 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-6973" role="group" aria-labelledby="date-error-6973-legend date-error-6973-messages">
    <legend class="fr-fieldset__legend--regular fr-fieldset__legend" id="date-error-6973-legend">
        Date de naissance
        <span class="fr-hint-text">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-6974">
            <label class="fr-label" for="date-error-6973-bday-day">
                Jour
                <span class="fr-hint-text">Exemple : 14</span>
            </label>
            <input class="fr-input" name="day" autocomplete="bday-day" id="date-error-6973-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-6975">
            <label class="fr-label" for="date-error-6973-bday-month">
                Mois
                <span class="fr-hint-text">Exemple : 12</span>
            </label>
            <input class="fr-input" name="month" autocomplete="bday-month" id="date-error-6973-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-6976">
            <label class="fr-label" for="date-error-6973-bday-year">
                Année
                <span class="fr-hint-text">Exemple : 1984</span>
            </label>
            <input class="fr-input" name="year" autocomplete="bday-year" id="date-error-6973-bday-year" type="text">
        </div>
    </div>
    <div class="fr-messages-group" id="date-error-6973-messages" aria-live="assertive">
        <p class="fr-message fr-message--error" id="date-error-6973-message-error-1">Le jour est invalide</p>
        <p class="fr-message fr-message--error" id="date-error-6973-message-error-2">Le mois est invalide</p>
        <p class="fr-message fr-message--error" id="date-error-6973-message-error-3">L’année est invalide</p>
    </div>
</fieldset>

Erreur globale

Date de naissance Texte de description additionnel

La date est postérieure à aujourd’hui

<fieldset class="fr-fieldset fr-fieldset--error" id="date-error-6982" role="group" aria-labelledby="date-error-6982-legend date-error-6982-messages">
    <legend class="fr-fieldset__legend--regular fr-fieldset__legend" id="date-error-6982-legend">
        Date de naissance
        <span class="fr-hint-text">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-6983">
            <label class="fr-label" for="date-error-6982-bday-day">
                Jour
                <span class="fr-hint-text">Exemple : 14</span>
            </label>
            <input class="fr-input" name="day" autocomplete="bday-day" id="date-error-6982-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-6984">
            <label class="fr-label" for="date-error-6982-bday-month">
                Mois
                <span class="fr-hint-text">Exemple : 12</span>
            </label>
            <input class="fr-input" name="month" autocomplete="bday-month" id="date-error-6982-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-6985">
            <label class="fr-label" for="date-error-6982-bday-year">
                Année
                <span class="fr-hint-text">Exemple : 1984</span>
            </label>
            <input class="fr-input" name="year" autocomplete="bday-year" id="date-error-6982-bday-year" type="text">
        </div>
    </div>
    <div class="fr-messages-group" id="date-error-6982-messages" aria-live="assertive">
        <p class="fr-message fr-message--error" id="date-error-6982-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.