remove placeholder for phone component
This commit is contained in:
parent
18e5c32363
commit
168616b8c6
5 changed files with 3 additions and 9 deletions
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
en:
|
||||
placeholder: "0612345678"
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
fr:
|
||||
placeholder: "0612345678"
|
|
@ -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]+"))
|
||||
|
|
|
@ -3,4 +3,4 @@ en:
|
|||
attributes:
|
||||
champs/phone_champ:
|
||||
hints:
|
||||
value: "Phone number must be valid"
|
||||
value: "Phone number must be valid. Example : 0612345678"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue