 elif field.type in ["CSRFTokenField", "SubmitField"] %}
      {{ field() }}
    {% endif %}
  {% endfor %}
{%- endmacro -%}
{% macro render_toc(form) %}
  <ul>
  {% for field in form %}
    {% if field.type == "FormField" and field.data | length > 1 %}
    <li>
      <a href="#{{ field.id }}">{{ field.label.text }}</a>
      {{ render_toc(field) }}
    </li>
    {% endif %}
  {% endfor %}
  </ul>
{%- endmacro -%}
{% block content %}
  <h1>Config</h1>
  <p>Check out <a href="https://archivy.github.io/config