diff --git a/app/modules/loyalty/templates/loyalty/store/enroll.html b/app/modules/loyalty/templates/loyalty/store/enroll.html index e1a981ef..c395a911 100644 --- a/app/modules/loyalty/templates/loyalty/store/enroll.html +++ b/app/modules/loyalty/templates/loyalty/store/enroll.html @@ -9,6 +9,11 @@ {% block alpine_data %}storeLoyaltyEnroll(){% endblock %} +{% block extra_head %} + + +{% endblock %} + {% block content %} {% call detail_page_header("'" + _('loyalty.store.enroll.page_title') + "'", '/store/' + store_code + '/loyalty/terminal') %} {{ _('loyalty.store.enroll.subtitle') }} @@ -58,7 +63,21 @@
- — Firefox ignores + the html lang attribute for native date inputs. dd/mm/yyyy + universally accepted in Europe. #} +

{{ _('loyalty.store.enroll.birthday_help') }}

@@ -147,5 +166,10 @@ {% endblock %} {% block extra_scripts %} +{# flatpickr loaded synchronously so x-init can call flatpickr() during Alpine setup #} + +{% if current_language and current_language != 'en' %} + +{% endif %} {% endblock %} diff --git a/app/modules/loyalty/templates/loyalty/storefront/enroll.html b/app/modules/loyalty/templates/loyalty/storefront/enroll.html index d6538bb6..7deea81e 100644 --- a/app/modules/loyalty/templates/loyalty/storefront/enroll.html +++ b/app/modules/loyalty/templates/loyalty/storefront/enroll.html @@ -7,6 +7,11 @@ {% block alpine_data %}customerLoyaltyEnroll(){% endblock %} +{% block extra_head %} + + +{% endblock %} + {% block content %}
@@ -84,7 +89,22 @@ - — Firefox ignores + the html lang attribute for native date inputs, so users on FR + still saw mm/dd/yyyy. flatpickr enforces dd/mm/yyyy across all + browsers and locales (universal in Europe). #} +

{{ _('loyalty.enrollment.form.birthday_hint') }}

@@ -170,5 +190,10 @@ {% endblock %} {% block extra_scripts %} +{# flatpickr loaded synchronously so x-init can call flatpickr() during Alpine setup #} + +{% if current_language and current_language != 'en' %} + +{% endif %} {% endblock %}