{% extends 'projects/base_project.html' %} {% load crispy_forms_tags static %} {% block title %}Manage Notification - {{ block.super }}{% endblock %} {% block content_project %}
{% csrf_token %}

General Settings

{% if "is_enabled" in form.fields %} {{ form.is_enabled|as_crispy_field }} {% endif %}
{{ type }} {{ type|capfirst }}
{% if email_pending_confirmation %}
This notification will be enabled once the recipient confirms the subscription by clicking the link in the confirmation email. Resend the confirmation email.
{% endif %} {{ form.name|as_crispy_field }}
{% with template_name="projects/notifications/_"|add:type|add:".html" %} {% include template_name %} {% endwith %}
{% if object %} {% endif %}
Cancel

Try

Send a test without saving. For webhooks and Slack you will see the HTTP request and response below.

{% if try_result %}
{{ try_result.summary }}
{% if try_result.channel_type == "email" and try_result.details %}
{% if try_result.details.recipient %} Recipient

{{ try_result.details.recipient }}

{% endif %} {% if try_result.details.subject %} Subject

{{ try_result.details.subject }}

{% endif %} {% if try_result.details.error %} Error

{{ try_result.details.error }}

{% endif %}
{% elif try_result.details.request_url %}
URL

{{ try_result.details.request_url }}

{% if try_result.details.request_method %} Method

{{ try_result.details.request_method }}

{% endif %} {% if "response_status" in try_result.details %} HTTP status

{{ try_result.details.response_status }}

{% endif %} {% if try_result.details.error %} Error

{{ try_result.details.error }}

{% endif %}
{% if try_result.details.request_headers %}

Request headers

{% for hk, hv in try_result.details.request_headers.items %}{{ hk }}: {{ hv }}
{% endfor %}
{% endif %} {% if try_result.details.request_payload %}

Request body

{{ try_result.details.request_payload }}
{% endif %} {% if try_result.details.response_headers %}

Response headers

{% for hk, hv in try_result.details.response_headers.items %}{{ hk }}: {{ hv }}
{% endfor %}
{% endif %} {% if try_result.details.response_body %}

Response body

{{ try_result.details.response_body }}
{% endif %} {% endif %} {% endif %}
{% endblock %}