{% extends "controlpanel/layout.html" %} {% block title %}General {{ __user_config("4cat.name") }} settings{% endblock %} {% block body_class %}plain-page frontpage admin settings {{ body_class }}{% endblock %} {% block subbreadcrumbs %}{% set navigation.sub = "config" %}{% endblock %} {% block body %}

Configure {{ __user_config("4cat.name") }}

{% if tag %} Editing configuration for tag {{ tag }}. Return to global settings. {% else %} Editing global configuration. View for tag instead:
{% endif %}
{% set tab = namespace(name="", open=False, first=True) %}
{% set tab = namespace(name="", open=False, first=True) %}
{% for notice in flashes %}

{{ notice|safe }}

{% endfor %} {% for option in options %} {% set option_category = option.split(".")[0] %} {% if option_category != tab.name %} {% set tab.name = option_category %} {% if tab.open %}
{% endif %}
    {% set tab.open = True %} {% endif %}
    {% if options[option].default is none %} {% set x=options[option].__setitem__("default", "") %} {% set settings = options[option] %} {% else %} {% set settings = options[option] %} {% endif %} {% include 'components/datasource-option.html' %}
    {% endfor %}
{% endblock %}