{% extends "xeolux_securitykit/base.html" %} {% block title %}{{ title }}{% endblock %} {% block content %}
{% csrf_token %} {% for field in form %} {% if field.name in "cond_authenticated,cond_staff,cond_whitelist_ip,cond_blacklist_deny,cond_api_key" %} {# Ces champs sont groupés dans le bloc "conditions" ci-dessous #} {% elif field.name == "cond_methods" or field.name == "cond_user_agent_block" %} {# Idem — affichés dans le groupe conditions #} {% else %}
{{ field }} {% if field.help_text %}

{{ field.help_text }}

{% endif %} {% if field.errors %}
    {% for e in field.errors %}
  • {{ e }}
  • {% endfor %}
{% endif %}
{% endif %} {% endfor %}
Conditions d'accès

Définissez qui peut accéder à cette route. Si aucune condition n'est cochée, la règle s'applique à tout le monde.

{% for choice_val, choice_label in form.cond_methods.field.choices %} {% endfor %}

{{ form.cond_methods.help_text }}

{{ form.cond_user_agent_block }}

{{ form.cond_user_agent_block.help_text }}

{% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
Annuler
{% if dry_run_result %}
Résultat de la simulation
CHEMIN
{{ dry_run_result.path }}
IP SIMULÉE
{{ dry_run_result.simulated_ip }}
VERDICT
{{ dry_run_result.final_verdict }}
{% for check in dry_run_result.checks %} {% endfor %}
VérificationRésultat
{{ check.check }} {{ check.result }}
{% endif %} {% if profiles %}
Profils disponibles
{% for profile in profiles %} {% endfor %}
ProfilDescription
{{ profile.label }} {{ profile.description }}
{% csrf_token %}
{% endif %} {% endblock %}