{# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for #}
{# more information about the licensing of this file. #}
{% for id, data in config_fields.items() %}
{% if data.type == "checkbox" %}
{% set append = 'checked' if section_config.get(id, data.default) else '' %}
{% set classes = '' %}
{% else %}
{% set append = 'value="{}"'.format(section_config.get(id, data.default)) %}
{% set classes = 'form-control form-control-sm' %}
{% endif %}