{# Setup widget, builds an Apprise URL from a few fields and appends it to the textarea below (which stays the source of truth). Its inputs have no name= so nothing here is submitted with the form. See notification-setup.js A page can have a second one for another list of URLs: include it with ns_suffix (added to the ids, so they stay unique) and ns_target (a selector for the textarea its "Add to list" appends to), see apprise.html. #} {%- set ns_suffix = ns_suffix|default('') %}
{# The most used services, one click opens their form. Apprise isn't imported to count the rest (it's loaded lazily), 152 are listed at the time of writing, so "over 140" holds. With NOTIFICATION_MAIL_BUTTON_PREFIX set there's already an "Add email notification" row (a hosted mail service), a second, plain e-mail button next to it would be confusing. #} {%- set ns_quick = [('discord', 'Discord', 'discord-logo.svg'), ('tgram', 'Telegram', 'telegram_logo.svg'), ('slack', 'Slack', 'slack-mark.svg')] %} {%- if emailprefix %} {%- set ns_quick = ns_quick + [('custom-http', _('Webhook / API'), 'webhook-mark.svg')] %} {%- else %} {%- set ns_quick = ns_quick + [('mailtos', _('E-mail'), 'email-envelope.svg')] %} {%- endif %} {%- set ns_quick = ns_quick + [('matrixs', 'Matrix', 'matrix-mark.svg'), ('pover', 'Pushover', 'pushover-mark.svg'), ('workflow', 'Microsoft Teams (Workflows)', 'teams-workflow-mark.svg'), ('hassios', 'Home Assistant', 'homeassistant-mark.svg'), ] %}
{%- for schema, name, icon in ns_quick %} {%- endfor %}
{{ _('List all') }}
    {{ _('Notification services powered by Apprise.', url='https://appriseit.com/')|safe }}
    {#- Once per page, the script sets up every .notification-setup it finds #} {%- if not ns_suffix %} {%- endif %}