{% extends "base.html" %}

{% import "bootstrap/wtf.html" as wtf %}
{% import "bootstrap/fixes.html" as fixes %}
{% import "bootstrap/utils.html" as util %}


{% block title %}{{ page_title }}{% endblock %}

{% block content %}
    <div class="container">
        <div class="page-header">
            <h1>{{ page_header }}</h1>
        </div>

        {{ util.flashed_messages(dismissible=True, container=False) }}

        {% if paragraphs is defined and paragraphs|length > 0 %}
            <div class="panel panel-default">
                <div class="panel-body">
                    {% for paragraph in paragraphs %}
                        <p>{{ paragraph }}</p>
                    {% endfor %}
                </div>
            </div>
        {% endif %}

        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Input</h3>
            </div>
            <div class="panel-body">
                {{ wtf.quick_form(form, form_type='horizontal', button_map={'submit_button': 'btn btn-primary'}) }}
            </div>
        </div>
    </div>

    {% include "footer.html" %}
{% endblock %}
