{% extends "xeolux_securitykit/base.html" %} {% block title %}Testeur de règles{% endblock %} {% block content %}
Paramètres de simulation
{% csrf_token %} {% for field in form %}
{% if field.field.widget.input_type == "checkbox" %} {% else %} {{ field }} {% endif %} {% if field.help_text %}

{{ field.help_text }}

{% endif %} {% if field.errors %}
    {% for e in field.errors %}
  • {{ e }}
  • {% endfor %}
{% endif %}
{% endfor %}
{% if dry_run_result %}
Résultat
{% if dry_run_result.final_verdict == "AUTORISÉ" %} AUTORISÉ {% else %} BLOQUÉ {% endif %} {{ dry_run_result.path }} depuis {{ dry_run_result.simulated_ip }}
Détail des vérifications
{% for check in dry_run_result.checks %} {% endfor %}
Module Résultat
{{ check.check }} {% if "BLOQUÉ" in check.result or "RÈGLE" in check.result %} {{ check.result }} {% if check.action %}→ {{ check.action }}{% endif %} {% else %} {{ check.result }} {% endif %}
{% else %}

Remplissez le formulaire et cliquez sur Simuler pour voir le résultat.

{% endif %}
{% endblock %}