{% extends 'report/template_upsert_base.html' %}

{% block content %}
<h3>
    {% blocktrans with title=object.title %}Editing {{ title }}{% endblocktrans %}
</h3>
<form method="post" novalidate>
    {% csrf_token %}
    <h4>{% trans 'Basic Setup' %}</h4>
    <div class="row">
        {% for field in filter.form %}
            {% if field.name in meta_fields_name %}
                <div class="col-xl-3 col-md-4 col">
                    {{ field.label }}
                    {{ field }}
                    {{ field.errors }}
                </div>
            {% endif %}
        {% endfor %}
    </div>
        <h4>{% trans 'Filters for Template' %}</h4>
        <div class="row">
            {% for field in filter.form %}
            {% if not field.name in filter.meta_fields_name %}
            <div class="col-xxl-3 col-xl-4 col-md-6 col">
                {{ field.label }}
                {{ field }}
                {{ field.errors }}
                {% if field.help_text %}
                <p class="help">{{ field.help_text|safe }}</p>
                {% endif %}
            </div>
            {% endif %}
            {% endfor %}
        </div>
        <div class="m-3"></div>
    <button class="btn btn-primary" type="submit">{% trans 'Edit' %}</button>
</form>
{% endblock %}