{% extends "config/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Add Notification Channel - Pychestrate Configuration{% endblock %} {% block content %} {{ ui.breadcrumb([("Notifications", url_for('config.notifications_overview')), ("Add Channel", None)]) }} {% if not kind %}
{% for item in kinds %}

{{ item.label }}

{{ item.description }}

Choose {{ item.label }}
{% endfor %}
{% else %}
{{ ui.error_summary(errors, error_labels) }}

{{ kind_description }} Choose a different type

What you will call this channel when you add a rule.
{{ ui.field_error(errors, 'name') }}
{% for field in fields %} {% if field.secret %}
{{ field.help }} It is stored in the secrets vault and never shown again.
{{ ui.field_error(errors, field.secret_id) }} {% if vault_secrets %} {% endif %}
{% elif field.field_type == 'bool' %}
{{ field.help }}
{% else %}
{{ field.help }}
{{ ui.field_error(errors, field.cfg_id) }}
{% endif %} {% endfor %}
Cancel
{% endif %} {% endblock %}