demarches-normaliennes/app/views/shared/dossiers/editable_champs/_phone.html.haml

10 lines
293 B
Text
Raw Normal View History

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