{% extends "dashboard.html" %} {% block head %} {% endblock %} {% block content %}

Loading custom configurations...

{% set config_types = { "crs": "shield-alt", "modsec_crs": "shield-quarter", "modsec": "shield-alt-2", "stream": "network-chart", "custom": "window-alt" } %} {% for config in configs %} {% set service_id = config['service_id'] if config['service_id'] else 'global' %} {% set config_id = config['type']|lower ~ '-' ~ service_id.replace('.', '_') ~ '-' ~ config['name'] %} {% if config['type'].startswith('crs') %} {% set config_icon = "shield-alt" %} {% elif config['type'] == 'modsec_crs' %} {% set config_icon = "shield-quarter" %} {% elif config['type'] == 'modsec' %} {% set config_icon = "shield-alt-2" %} {% elif 'stream' in config['type'] %} {% set config_icon = "network-chart" %} {% else %} {% set config_icon = "window-alt" %} {% endif %} {% endfor %}
Name Type Method Service Status Template Checksum Actions
 {{ config["name"] }}
{{ config["type"]|upper }}
{{ config["method"] }} {% if config["service_id"] %}  {{ config["service_id"] }} {% else %} Global {% endif %} {% if config.get("is_draft") %} Draft {% else %} Online {% endif %} {% if config["template"] %}  {{ config["template"] }} {% else %} No template {% endif %} {{ config["checksum"] }}
{% set can_edit_config = config['template'] or is_editable_method(config['method']) %} {% set row_selection = [{"service": service_id, "type": config['type'], "name": config['name']}] | tojson %} {% set delete_tooltip_key = 'tooltip.disabled_readonly' if user_readonly else ('tooltip.disabled_db_readonly' if is_readonly else ('tooltip.disabled_by_method' if not can_edit_config else 'tooltip.button.delete_config')) %} {% set delete_tooltip_options = '{"method": "' ~ config['method'] ~ '"}' if not can_edit_config and not is_readonly else '{"name": "' ~ config['name'] ~ '"}' %}
{% if not is_readonly %} {% endif %} {% endblock %} {% block scripts %} {% endblock %}