{% set fieldset = namespace(open=false) %}
{% if labels %}
{% for label in labels %}
{% set label_id = label | replace(" ", "_") %}
{% if label == "local" %}
The data for this data source are gathered and stored by this 4CAT instance.
{% elif label == "static" %}
The data for this datasource are not updated anymore.
{% elif label == "external" %}
The data for this datasource is collected externally (API or custom upload).
{% elif label == "experimental" %}
This data source is not bug-proof.
{% endif %}
{% endfor %}
{% 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 %}
{% endif %}