{% extends "layout.html" %} {% block title %}Configure {{ __tool_name }}{% endblock %} {% block body_class %}plain-page frontpage admin settings {{ body_class }}{% endblock %} {% block body %} {% set fieldset = namespace(open=false,legend="") %}

Configure {{ __tool_name }}

{% for notice in flashes %}

{{ notice|safe }}

{% endfor %} {% for option in options %} {% set new_legend = option.split(".")[0] %} {% if new_legend != fieldset.legend %} {% set fieldset.legend = new_legend %} {% if fieldset.open %}{% set fieldset.open = False %}{% endif %} {% endif %} {% if not fieldset.open %}
{% if fieldset.legend in categories %}{{ categories[fieldset.legend] }}{% elif fieldset.legend in modules %}Settings for '{{ modules[fieldset.legend] }}'{% else %}{{ fieldset.legend }}{% endif %} {% set fieldset.open = True %} {% endif %} {% if options[option].default is none %} {% set x=options[option].__setitem__("default", "") %} {% set settings = options[option] %} {% else %} {% set settings = options[option] %} {% endif %} {% include 'components/datasource-option.html' %} {% endfor %} {% if fieldset_open %}
{% endif %}
{% endblock %}