{% extends 'base.html' %}
{% from "macros.html" import render_field, render_included_field, debug_to_console %}

{% block title %}Tenant Overview{% endblock %}

{% block content_title %}Tenant Overview{% endblock %}
{% block content_description %}Tenant information{% endblock %}

{% block content %}
    <form method="post">
        {{ form.hidden_tag() }}
        {% set disabled_fields = [] %}
        {% for field in form %}
            {{ debug_to_console('field to disable', field.name) }}
            {{ debug_to_console('field type to disable', field.type) }}
            {% if field.name != 'csrf_token' and field.type != 'HiddenField' %}
                {% set disabled_fields = disabled_fields + [field.name] %}
                {{ debug_to_console('disable', '!') }}
            {% endif %}
        {% endfor %}
        {{ debug_to_console('disabled_fields', disabled_fields) }}
        {% set exclude_fields = [] %}
        {% for field in form %}
            {{ render_field(field, disabled_fields, exclude_fields) }}
        {% endfor %}
    </form>
{% endblock %}

{% block content_footer %}

{% endblock %}
