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

{% block content %}
<h3>
    {% blocktrans with title=object.title model=object.model %}Creating report {{ title }} for model {{ model }}.{% endblocktrans %}
</h3>
<div class="m-5"></div>
<form method="post" novalidate>
    {% csrf_token %}
    {{ filter.form.columns }}
    <div class="m-3"></div>
    <h4>{% trans 'Rows to be filtered' %}</h4>
    <div class="row">
        {% for field in filter.form %}
            {% if field != filter.form.columns %}
                <div class="col-xxl-2 col-xl-3 col-md-6 col">
                    <label for="id_{{ field.label }}">
                        {{ field.label }}
                    </label>
                    {{ field }}
                    {% if field.errors %}
                        <small class="text-danger">
                            {{ field.errors }}
                        </small>
                    {% endif %}
                    {% 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 'Submit' %}</button>
</form>
{% endblock %}