From d3c236f9018c2dd7e6fd889035907ef8e39f5802 Mon Sep 17 00:00:00 2001 From: rde Date: Tue, 20 Sep 2022 14:58:47 +0200 Subject: [PATCH 1/8] Country code dropdown added to swish --- templates/form/swish.liquid | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/form/swish.liquid b/templates/form/swish.liquid index 3113f75..40b0ab7 100644 --- a/templates/form/swish.liquid +++ b/templates/form/swish.liquid @@ -8,7 +8,19 @@
-
+ +
+ + +
+ +
Date: Mon, 26 Sep 2022 11:18:07 +0200 Subject: [PATCH 2/8] funktionallity added and phone number length set to 14 --- templates/form/swish.liquid | 40 +++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/templates/form/swish.liquid b/templates/form/swish.liquid index 40b0ab7..b88e5e3 100644 --- a/templates/form/swish.liquid +++ b/templates/form/swish.liquid @@ -1,5 +1,5 @@
-
+
@@ -10,16 +10,36 @@
- - + + {% for country_code in model.country_codes %} + + {% endfor %}
- +
Date: Mon, 26 Sep 2022 15:27:25 +0200 Subject: [PATCH 3/8] Little fix to get 1 to 14 numbers --- templates/form/swish.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/form/swish.liquid b/templates/form/swish.liquid index b88e5e3..a365ba4 100644 --- a/templates/form/swish.liquid +++ b/templates/form/swish.liquid @@ -48,7 +48,7 @@ name="mobile" class="form-control" autocomplete="tel" - pattern="^\s*(?:\+?(\d{1,9}))?[-. (]*[0-14\s]*" + pattern="^\s*(?:\+?(\d{1,14}))?[-. (]*[0-9\s]*" inputmode="numeric" value="{{ model.mobile_number }}" placeholder="07XXXXXX" From 35822592056c8e0062d61d75210445901482c6ff Mon Sep 17 00:00:00 2001 From: rde Date: Thu, 29 Sep 2022 09:42:50 +0200 Subject: [PATCH 4/8] cleanup --- templates/form/swish.liquid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/form/swish.liquid b/templates/form/swish.liquid index a365ba4..e51da02 100644 --- a/templates/form/swish.liquid +++ b/templates/form/swish.liquid @@ -1,5 +1,5 @@
- +
@@ -11,7 +11,7 @@
- {% for country_code in model.country_codes %}