2019-01-24 18:46:09 +01:00
|
|
|
-# Allowed formats:
|
|
|
|
-# 0123456789
|
|
|
|
-# 01 23 45 67 89
|
|
|
|
-# 01.23.45.67.89
|
|
|
|
-# 0123 45.67.89
|
|
|
|
-# 0033 123-456-789
|
|
|
|
-# 0035 123-456-789
|
|
|
|
-# 0033 123-456-789
|
|
|
|
-# 0033(0)123456789
|
|
|
|
-# +33-1.23.45.67.89
|
|
|
|
-# +33 - 123 456 789
|
|
|
|
-# +33(0) 123 456 789
|
|
|
|
-# +33 (0)123 45 67 89
|
|
|
|
-# +33 (0)1 2345-6789
|
|
|
|
-# +33(0) - 123456789
|
|
|
|
-# +1(0) - 123456789
|
|
|
|
-# +2 123456789
|
|
|
|
-# 012345678
|
|
|
|
-# 01234567890
|
2017-08-02 14:56:08 +02:00
|
|
|
= form.phone_field :value,
|
2017-07-25 14:33:03 +02:00
|
|
|
placeholder: champ.libelle,
|
2019-01-24 18:46:09 +01:00
|
|
|
required: champ.mandatory?,
|
|
|
|
pattern: "([\\+\\d\\(][\\(\\)\\s\\.\\-\\d]{4,}\\d)"
|