{% from '_helpers.html' import render_field %} {% macro show_token_placeholders(extra_notification_token_placeholder_info, suffix="") %}
Body for all notifications ‐ You can use Jinja2 templating in the notification title, body and URL, and tokens from below.
Show token/placeholders
{% endmacro %} {% macro render_common_settings_form(form, emailprefix, settings_application, extra_notification_token_placeholder_info) %}
{{ render_field(form.notification_urls, rows=5, placeholder="Examples: Gitter - gitter://token/room Office365 - o365://TenantID:AccountEmail/ClientID/ClientSecret/TargetEmail AWS SNS - sns://AccessKeyID/AccessSecretKey/RegionName/+PhoneNo SMTPS - mailtos://user:pass@mail.domain.com?to=receivingAddress@example.com", class="notification-urls" ) }}

Tip: Use AppRise Notification URLs for notification to just about any service! Please read the notification services wiki here for important configuration notes.

Show advanced help and tips
Send test notification {% if emailprefix %} Add email Add an email address {% endif %} Notification debug logs
{{ render_field(form.notification_title, class="m-d notification-title", placeholder=settings_application['notification_title']) }} Title for all notifications
{{ render_field(form.notification_body , rows=5, class="notification-body", placeholder=settings_application['notification_body']) }} {{ show_token_placeholders(extra_notification_token_placeholder_info=extra_notification_token_placeholder_info) }}
  • For JSON payloads, use |tojson without quotes for automatic escaping, for example - { "name": {{ '{{ watch_title|tojson }}' }} }
  • URL encoding, use |urlencode, for example - gets://hook-website.com/test.php?title={{ '{{ watch_title|urlencode }}' }}
  • Regular-expression replace, use |regex_replace, for example - {{ "{{ \"hello world 123\" | regex_replace('[0-9]+', 'no-more-numbers') }}" }}
  • For a complete reference of all Jinja2 built-in filters, users can refer to the https://jinja.palletsprojects.com/en/3.1.x/templates/#builtin-filters

{{ render_field(form.notification_format , class="notification-format") }} Format for all notifications
{% endmacro %}