{% set section = namespace(section='') %} {% for set in settings %} {% if page == "servers.py" and (set.section in ('monitoring', 'rabbitmq', 'mail')) %} {% else %} {% if section.section|string() != set.section|string() %} {% endif %} {% set section.section = set.section %} {% if page == "servers.py" and (set.param == 'proxy') %} {% else %} {% endif %} {% endif %} {% endfor %}

{% if set.section == 'ldap' %} {{ set.section|upper}} {% else %} {{ set.section[0]|upper}}{{set.section[1:] }} {% endif %}