{% import "bootstrap/wtf.html" as wtf %}
{% import "bootstrap/utils.html" as utils %}
{% extends "base.html" %}
{% block content %}
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h2>Process Multiple Records</h2>
            </div>
        </div>
        {%- with messages = get_flashed_messages(with_categories=True) %}
            {%- if messages %}
                <div class="row">
                    <div class="col-md-12">
                        {{utils.flashed_messages(messages)}}
                    </div>
                </div>
            {%- endif %}
        {%- endwith %}
        <div class="row">
            <div class="col-md-12">
                <h3>Required Fields:</h3>
                <ul>
                {% for f in req_fields %}
                    <li>{{ f }}</li>
                {% endfor %}
                </ul>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                {{wtf.quick_form(form)}}
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <h3>Results:</h3>
                <code>
{{ output }}
                </code>
            </div>
        </div>
    </div>
{% endblock %}