Skip to content

Commit

Permalink
User form template update
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansberry committed Dec 4, 2024
1 parent 9faa08e commit e639011
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
{% asset "ckanext-dataset-subscriptions/user-edit-css" %}
<div class="alert phonenumber alert-error" style="display: none"></div>
{{ 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 %}
Expand Down

0 comments on commit e639011

Please sign in to comment.