Move expected format of email field to <span class='fr-hint-text'>

This commit is contained in:
Corinne Durrmeyer 2024-07-25 10:15:43 +02:00
parent 280a25928c
commit e98dbf3898
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6
3 changed files with 4 additions and 3 deletions

View file

@ -18,8 +18,9 @@
.fr-input-group
= label_tag :email, class: 'fr-label' do
Email
= t('.notice_email')
= render EditableChamp::AsteriskMandatoryComponent.new
%span.fr-hint-text
= t('.notice_email')
= email_field_tag :email, params[:email], required: true, autocomplete: 'email', class: 'fr-input'
%fieldset.fr-fieldset{ name: "type" }

View file

@ -5,7 +5,7 @@ en:
intro_html:
'<p>Contact us via this form and we will answer you as quickly as possible.</p>
<p>Make sure you provide all the required information so we can help you in the best way.</p>'
notice_email: '(example: address@mail.com)'
notice_email: 'Expected format: address@mail.com'
your_question: Your question
our_answer: Our answer
notice_pj_product: A screenshot can help us identify the element to improve.

View file

@ -5,7 +5,7 @@ fr:
intro_html:
'<p>Contactez-nous via ce formulaire et nous vous répondrons dans les plus brefs délais.</p>
<p>Pensez bien à nous donner le plus dinformations possible pour que nous puissions vous aider au mieux.</p>'
notice_email: '(exemple : adresse@mail.com)'
notice_email: 'Format attendu : adresse@mail.com'
your_question: Votre question
our_answer: Notre réponse
notice_pj_product: Une capture décran peut nous aider à identifier plus facilement lendroit à améliorer.