{% extends "base.html" %} {% load static %} {% load event_tags %} {% block content %} {{ block.super }}

{% if scope == 'system' %}System{% else %}Personal{% endif %} Notification Settings

{% csrf_token %}
{% if request.user.is_superuser %}

 

 

 

{% endif %} {% if scope == 'system' %}

These notification settings apply globally to all products and will be sent to all super / staff users.

{% else %}

These notification settings apply globally to all products that you have read access to and will be sent to you only.

If you want only notifications for certain products you should disable everything here and enable notifications on those products.

{% endif %} {% for u in not_users %}

{{ u.username }} {{ u.applicable_notifications_count }}

{% for n in u.applicable_notifications %}

{{ n.id }} {{ n.product.id }}, {{ n.user }}, e:{{ n.engagement_added}}, t:{{ n.test_added}}, scan:{{ n.scan_added }}

{% endfor %}

{{ u.merged_notifications.scan_added }}

{% endfor %} {% if 'slack' in enabled_notifications %} {% endif %} {% if scope == 'system' and 'msteams' in enabled_notifications %} {% endif %} {% if 'mail' in enabled_notifications %} {% endif %} {% for field in form.visible_fields %} {% if field.auto_id %} {% endif %} {% for pk,c in field.field.widget.choices %} {% if scope == 'system' and c in enabled_notifications %} {% elif scope == 'personal' and c in enabled_notifications and c != 'msteams' %} {% endif %} {% endfor %} {% for error in field.errors %} {{ error }} {% endfor %} {% endfor %}
EventSlackMicrosoft TeamsMailAlert
{{ field.label }}{% if field.field.required %}*{% endif %} {% if field.help_text %} {% endif %}
{% endblock %} {% block postscript %} {{ block.super }} {% endblock %}