{% from '_helpers.jinja' import render_field %} {% macro render_common_settings_form(form, emailprefix, settings_application) %}
{{ 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" ) }}
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']) }} Body for all notifications ‐ You can use Jinja2 templating in the notification title, body and URL, and tokens from below.
Show token/placeholders
{{ render_field(form.notification_format , class="notification-format") }} Format for all notifications
{% endmacro %}