Skip to content

Commit

Permalink
Improve UI language
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansberry committed Nov 13, 2024
1 parent 1fa4a0e commit c39f3a3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
{% 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 SMS notification'), id='field-activity-streams-sms-notifications', value=True, checked=data.activity_streams_sms_notifications) %}
{% set helper_text = _("You will receive SMS notifications when you have new activities on your dashboard."|string) %}
{% 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) %}
{% 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 %}
{{ super() }}
{% asset "ckanext-dataset-subscriptions/phone-number-js" %}
{{ super() }}
{% endblock %}

0 comments on commit c39f3a3

Please sign in to comment.