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

{% block title %}Session Defaults{% endblock %}

{% block content_title %}Session Defaults{% endblock %}
{% block content_description %}Specifiy the defaults to be used in your session.{% endblock %}

{% block content %}
    <form method="post">
        {{ form.hidden_tag() }}
        {%  set disabled_fields = ['user_name', 'user_email', 'tenant_name', 'partner_name'] %}
        {%  set exclude_fields = [] %}
        {% for field in form %}
            {{ render_field(field, disabled_fields, exclude_fields) }}
        {% endfor %}
        <button type="submit" class="btn btn-primary">Set Session Defaults</button>
    </form>
{% endblock %}

{% block content_footer %} {% endblock %}