From e63901172c20557a6180dcba9917b4424ee6ab13 Mon Sep 17 00:00:00 2001 From: Jonathan S Berry Date: Wed, 4 Dec 2024 15:08:14 +0000 Subject: [PATCH] User form template update --- .../templates/user/edit_user_form.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ckanext/dataset_subscriptions/templates/user/edit_user_form.html b/ckanext/dataset_subscriptions/templates/user/edit_user_form.html index c635b94..19c3183 100644 --- a/ckanext/dataset_subscriptions/templates/user/edit_user_form.html +++ b/ckanext/dataset_subscriptions/templates/user/edit_user_form.html @@ -5,10 +5,14 @@ {% asset "ckanext-dataset-subscriptions/user-edit-css" %} {{ form.input('phonenumber', label=_('Phone number'), id='field-phonenumber', type='tel', value=data.phonenumber, error=errors.phonenumber, placeholder=_('eg. +44 123123123'), classes=['control-medium'], is_required=false) }} - {% call form.checkbox('activity_streams_sms_notifications', label=_('Subscribe to notification SMS text messages'), id='field-activity-streams-sms-notifications', value=True, checked=data.activity_streams_sms_notifications) %} + {% call form.checkbox('activity_streams_sms_notifications', label=_('Subscribe to recieve SMS notifications'), id='field-activity-streams-sms-notifications', value=True, checked=data.activity_streams_sms_notifications) %} {% set helper_text = _("You will receive SMS notifications from {site_title} when you have new activities on your dashboard."|string) %} {{ form.info(helper_text.format(site_title=g.site_title), classes=['info-help-tight']) }} {% endcall %} + {% call form.checkbox('activity_streams_whatsapp_notifications', label=_('Subscribe to recieve Whatsapp notifications'), id='field-activity-streams-whatsapp-notifications', value=True, checked=data.activity_streams_whatsapp_notifications) %} + {% set helper_text = _("You will receive Whatsapp notifications from {site_title} when you have new activities on your dashboard."|string) %} + {{ form.info(helper_text.format(site_title=g.site_title), classes=['info-help-tight']) }} + {% endcall %} {% asset "ckanext-dataset-subscriptions/phone-number-js" %} {{ super() }} {% endblock %}