From d82e84d711d507142d9e7b073968fecfe664b879 Mon Sep 17 00:00:00 2001 From: Corinne Durrmeyer Date: Tue, 25 Jun 2024 16:10:22 +0200 Subject: [PATCH] Add expected data type to email field --- app/views/support/index.html.haml | 1 + config/locales/views/support/en.yml | 1 + config/locales/views/support/fr.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/app/views/support/index.html.haml b/app/views/support/index.html.haml index 366dafad7..0c54a1c4e 100644 --- a/app/views/support/index.html.haml +++ b/app/views/support/index.html.haml @@ -18,6 +18,7 @@ .fr-input-group = label_tag :email, class: 'fr-label' do Email + = t('.notice_email') = render EditableChamp::AsteriskMandatoryComponent.new = email_field_tag :email, params[:email], required: true, autocomplete: 'email', class: 'fr-input' diff --git a/config/locales/views/support/en.yml b/config/locales/views/support/en.yml index 8a79b8f54..226327cbf 100644 --- a/config/locales/views/support/en.yml +++ b/config/locales/views/support/en.yml @@ -4,6 +4,7 @@ en: contact: Contact intro_html: "

Contact us via this form and we will answer you as quickly as possible.

Make sure you provide all the required information so we can help you in the best way.

" + notice_email: "(example: myaddress@mymail.com)" your_question: Your question our_answer: 👉 Our answer notice_pj_product: A screenshot can help us identify the element to improve. diff --git a/config/locales/views/support/fr.yml b/config/locales/views/support/fr.yml index 944f3be40..2e09606fc 100644 --- a/config/locales/views/support/fr.yml +++ b/config/locales/views/support/fr.yml @@ -4,6 +4,7 @@ fr: contact: Contact intro_html: "

Contactez-nous via ce formulaire et nous vous répondrons dans les plus brefs délais.

Pensez bien à nous donner le plus d’informations possible pour que nous puissions vous aider au mieux.

" + notice_email: "(exemple : monadresse@monmail.com)" your_question: Votre question our_answer: Notre réponse notice_pj_product: Une capture d’écran peut nous aider à identifier plus facilement l’endroit à améliorer.