{% extends "base.html" %}

{% block nav %}
    <nav class="navbar navbar-expand">
        <ul class="navbar-nav mr-auto"></ul>
    <form class="form-inline" method="get" action="">
        <div class="form-group mx-2">
        <input type="text" class="form-control" minlength="3" name="q">
        </div>
        <button type="submit" class="btn btn-primary">Search</button>
    </form>
    </nav>
{% endblock %}

{% block content %}
    <div style="text-align: center">
    {% include "pagination.html" %}
    </div>
    <div class="container col-7">
    {% with %}
        {% set end=publisher_end %}
        {% set start=publisher_start %}
        {% if publishers != [] and start != end %}
            <h1>Publishers</h1>
            <div class="row justify-content-start">
                {% include "comics/publisherList.html" %}
            </div>
        {% endif %}
    {% endwith %}
    {% with %}
        {% set end=series_end %}
        {% set start=series_start %}
        {% if publisher_series != [] and start != end %}
            <h1>Series</h1>
            <div class="row justify-content-start">
                {% include "comics/PublisherSeriesList.html" %}
            </div>
        {% endif %}
    {% endwith %}
    {% with %}
        {% set end=comics_end %}
        {% set start=comics_start %}
        {% if comics != [] and start != end %}
            <h1>Comics</h1>
            <div class="row justify-content-start">
                {% include "comics/seriesList.html" %}
            </div>
        {% endif %}
    {% endwith %}
    </div>
    <div style="text-align: center">
    {% include "pagination.html" %}
    </div>
{% endblock %}
