Merge pull request #10709 from colinux/cojo-date-hint-localized

ETQ usager, j'ai une indication sur le format de date à saisir en fonction de mon navigateur
This commit is contained in:
Paul Chavard 2024-08-22 10:12:19 +00:00 committed by GitHub
commit 6a642c350e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View file

@ -3,5 +3,6 @@ en:
accreditation_number_label: Accreditation number
accreditation_number_notice: Identification number issued by Paris 2024
accreditation_birthdate_label: Date of birth
accreditation_birthdate_hint: 'Format: MM/JJ/AAAA'
accreditation_number_error: Invalid accreditation number
accreditation_number_verification_pending: Accreditation number verification in progress

View file

@ -3,5 +3,6 @@ fr:
accreditation_number_label: Numéro daccréditation
accreditation_number_notice: Numéro didentification délivré par Paris 2024
accreditation_birthdate_label: Date de naissance
accreditation_birthdate_hint: 'Format : JJ/MM/AAAA'
accreditation_number_error: Le numéro daccréditation est incorrect
accreditation_number_verification_pending: Vérification du numéro daccréditation en cours

View file

@ -17,6 +17,7 @@
.fr-input-group{ class: input_group_class }
= @form.label :accreditation_birthdate, for: @champ.accreditation_birthdate_input_id, class: 'fr-label' do
- safe_join [t('.accreditation_birthdate_label'), @champ.required? ? render(EditableChamp::AsteriskMandatoryComponent.new) : ''], ' '
%p.fr-hint-text{ data: { controller: 'date-input-hint' } }= t('.accreditation_birthdate_hint')
= @form.date_field :accreditation_birthdate,
required: @champ.required?,
aria: { describedby: dom_id(@champ, :accreditation_birthdate) },