DSFR v1.12.0
Le champ de saisie de date fixe reprend trois champs de saisie de texte.
Documentation<fieldset class="fr-fieldset" id="date-727" aria-labelledby="date-727-legend date-727-messages">
<legend class="fr-fieldset__legend--regular fr-fieldset__legend" id="date-727-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-728">
<label class="fr-label" for="date-727-bday-day">
Jour
<span class="fr-hint-text">Exemple : 14</span>
</label>
<input class="fr-input" name="day" autocomplete="bday-day" id="date-727-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-729">
<label class="fr-label" for="date-727-bday-month">
Mois
<span class="fr-hint-text">Exemple : 12</span>
</label>
<input class="fr-input" name="month" autocomplete="bday-month" id="date-727-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-730">
<label class="fr-label" for="date-727-bday-year">
Année
<span class="fr-hint-text">Exemple : 1984</span>
</label>
<input class="fr-input" name="year" autocomplete="bday-year" id="date-727-bday-year" type="text">
</div>
</div>
<div class="fr-messages-group" id="date-727-messages" aria-live="polite">
</div>
</fieldset>
<fieldset class="fr-fieldset fr-fieldset--error" id="date-error-736" role="group" aria-labelledby="date-error-736-legend date-error-736-messages">
<legend class="fr-fieldset__legend--regular fr-fieldset__legend" id="date-error-736-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-737">
<label class="fr-label" for="date-error-736-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-736-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-738">
<label class="fr-label" for="date-error-736-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-736-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-739">
<label class="fr-label" for="date-error-736-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-736-bday-year" type="text">
</div>
</div>
<div class="fr-messages-group" id="date-error-736-messages" aria-live="polite">
<p class="fr-message fr-message--error" id="date-error-736-message-error-1">Le jour est invalide</p>
<p class="fr-message fr-message--error" id="date-error-736-message-error-2">Le mois est invalide</p>
<p class="fr-message fr-message--error" id="date-error-736-message-error-3">L’année est invalide</p>
</div>
</fieldset>
<fieldset class="fr-fieldset fr-fieldset--error" id="date-error-745" role="group" aria-labelledby="date-error-745-legend date-error-745-messages">
<legend class="fr-fieldset__legend--regular fr-fieldset__legend" id="date-error-745-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-746">
<label class="fr-label" for="date-error-745-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-745-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-747">
<label class="fr-label" for="date-error-745-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-745-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-748">
<label class="fr-label" for="date-error-745-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-745-bday-year" type="text">
</div>
</div>
<div class="fr-messages-group" id="date-error-745-messages" aria-live="polite">
<p class="fr-message fr-message--error" id="date-error-745-message-error">La date est postérieure à aujourd’hui</p>
</div>
</fieldset>