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

{% if scope == 'system' %} {% trans "System" %} {% elif scope == 'personal'%} {% trans "Personal" %} {% else %} {% trans "System" %} {% endif %} {% trans "Notification Settings" %}

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

 

 

 

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

{% trans "These notification settings apply globally to all products and will be sent to all superusers." %}

{% elif scope == 'personal' %}

{% trans "These notification settings apply globally to all products that you have read access to and will be sent to you only." %}

{% trans "If you want only notifications for certain products you should disable everything here and enable notifications on those products." %}

{% else %}

{% trans "These template template" %}

{% 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' %} {% elif scope == 'template' and c in enabled_notifications and c != 'msteams' %} {% else %} {% endif %} {% endfor %} {% for error in field.errors %} {{ error }} {% endfor %} {% endfor %}
{% trans "Event" %}{% trans "Slack" %}{% trans "Microsoft Teams" %}{% trans "Mail" %}{% trans "Alert" %}
{{ field.label }}{% if field.field.required %}*{% endif %} {% if field.help_text %} {% endif %}
{% endblock %} {% block postscript %} {{ block.super }} {% endblock %}