demarches-normaliennes/app/components/editable_champ/phone_component/phone_component.html.haml
2023-07-26 14:27:50 +02:00

4 lines
300 B
Text

-# 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]+"))