New configuration
    {% set check = {"active": "active", "selected": "true"} %} {% for k, v in config["CONFIG"].get_settings().items() %}
  • {{ k }}
  • {% if check.update({"active": "", "selected": "false"}) %} {% endif %} {% endfor %}
{% set check = {"class": "show active"} %} {% for k, v in config["CONFIG"].get_settings().items() %}
{% for param in v["params"] %} {% if param["type"] != "multiple" and param["context"] == "multisite" %}
{% set default = {"value": param["default"]} %} {% if param["env"] in config["CONFIG"].get_config() %} {% set x = default.update({"value": config["CONFIG"].get_config()[param["env"]]}) %} {% endif %} {{ form_service_gen("form-new-" + param["id"], param["label"], param["type"], default["value"], param["env"])|safe }}
{% elif param["type"] == "multiple" %} {% set gen = {"value": False} %} {% for param2 in param["params"] %} {% if param2["context"] == "multisite" %} {% set x = gen.update({"value": True}) %} {% endif %} {% endfor %} {% if gen["value"] %}
{{ form_service_gen_multiple("form-new-" + param["id"], param["label"], param["params"])|safe }}
{% endif %} {% endif %} {% endfor %}
{% if check.update({"class": ""}) %} {% endif %} {% endfor %}