{% set fieldset = namespace(open=false) %} {% if labels %} {% endif %} {% for option in options %} {% set settings = options[option] %} {% if not settings.requires or (current_user.is_authenticated and current_user.is_admin) or current_user.get_attribute(settings.requires) %} {% if not fieldset.open %}
{% set fieldset.open = True %}{% endif %} {% include 'components/datasource-option.html' %} {% endif %} {% endfor %} {% if fieldset_open %}
{% endif %}