remove placeholder for phone component

This commit is contained in:
Christophe Robillard 2023-09-25 16:59:34 +02:00
parent 18e5c32363
commit 168616b8c6
5 changed files with 3 additions and 9 deletions

View file

@ -1,3 +0,0 @@
---
en:
placeholder: "0612345678"

View file

@ -1,3 +0,0 @@
---
fr:
placeholder: "0612345678"

View file

@ -1,4 +1,4 @@
-# Allowed @formats:
-# very light validation is made client-side
-# stronger validation is made server-side
= @form.phone_field(:value, input_opts(id: @champ.input_id, aria: { describedby: @champ.describedby_id }, placeholder: t(".placeholder"), required: @champ.required?, pattern: "[^a-z^A-Z]+"))
= @form.phone_field(:value, input_opts(id: @champ.input_id, aria: { describedby: @champ.describedby_id }, required: @champ.required?, pattern: "[^a-z^A-Z]+"))

View file

@ -3,4 +3,4 @@ en:
attributes:
champs/phone_champ:
hints:
value: "Phone number must be valid"
value: "Phone number must be valid. Example : 0612345678"

View file

@ -3,4 +3,4 @@ fr:
attributes:
champs/phone_champ:
hints:
value: "Le numéro de téléphone saisi doit être valide"
value: "Le numéro de téléphone saisi doit être valide. Exemple : 0612345678"