{% for config in configs|sort((a, b) => a.order <=> b.order) %} {% set continue = true %} {% if not config.grouped is empty %} {% if app.session.get(config.grouped)==0 %} {% set continue = false %} {% endif %} {% endif %} {%if continue %} {% set val = config.value %} {% if val is empty %} {% set val=app.session.get(config.id) %} {% endif %} {% set color = "" %} {% set bgcolor = "" %} {% set otherstyle = "" %} {% if config.id=='colorbgbodydark' %} {% set bgcolor = val %} {% set color = app.session.get('colorftbodydark') %} {% elseif config.id=='colorbgbodylight' %} {% set bgcolor = val %} {% set color = app.session.get('colorftbodylight') %} {% elseif config.id=='colorfttitledark' %} {% set bgcolor = app.session.get('colorbgbodydark') %} {% set color = val %} {% elseif config.id=='colorfttitlelight' %} {% set bgcolor = app.session.get('colorbgbodylight') %} {% set color = val %} {% elseif config.id=='colorftbodydark' %} {% set bgcolor = app.session.get('colorbgbodydark') %} {% set color = val %} {% elseif config.id=='colorftbodylight' %} {% set bgcolor = app.session.get('colorbgbodylight') %} {% set color = val %} {% elseif config.id=='fonttitle' %} {% set color = app.session.get('colorfttitlelight') %} {% set otherstyle = "font-family: "~val~";" %} {% elseif config.id=='logodark' %} {% set bgcolor = app.session.get('colorbgbodydark') %} {% set otherstyle = "text-align: center;" %} {% elseif config.id=='logolight' %} {% set bgcolor = app.session.get('colorbgbodylight') %} {% set otherstyle = "text-align: center;" %} {% endif %} {% endif %} {% endfor %}
{% if config.changeable %} {% endif %} {% if not config.required %} {% endif %} {{config.title}} {% if config.type=="boolean" %} {% if val=="0" %} Non {% elseif val=="1" %} Oui {%endif%} {% elseif config.type=="logo" %} {%if not val is empty %} {% endif %} {% elseif config.type=="header" %} {%if not val is empty %} {% endif %} {% else %} {{ val|raw }} {% endif %}