{% extends "agenda_culturel/page.html" %}
{% load utils_extra %}


{% block title %}{% block og_title %}Événements sans lieu{% endblock %}{% endblock %}

{% load cat_extra %}
{% block entete_header %}
    {% css_categories %}
{% endblock %}

{% block sidemenu-bouton %}
    <li><a href="#contenu-principal" aria-label="Aller au contenu">{% picto_from_name "chevron-up" %}</a></li>
    <li><a href="#sidebar" aria-label="Aller au menu latéral">{% picto_from_name "chevron-down" %}</a></li>
{% endblock %}

{% block content %}
<div class="grid two-columns">
<article>
    <header>
        <div class="slide-buttons">
            <a href="{% url 'fix_unknown_places' %}" role="button" data-placement="left" data-tooltip="Utiliser les alias des lieux pour les associer aux événements sans lieu">Détecter par alias {% picto_from_name "link" %}</a>
        </div>
        <h1>Événements sans lieu</h1>
    </header>

    <div>
{% for obj in object_list %}
    <article>{% include "agenda_culturel/single-event/event-in-unknown-place-list-inc.html" with event=obj %}</article>
{% endfor %}
    </div>
<footer>
    <span>
        {% if page_obj.has_previous %}
            <a href="?page=1" role="button">&laquo; premier</a>
            <a href="?page={{ page_obj.previous_page_number }}" role="button">précédent</a>
        {% endif %}

        <span>
            Page {{ page_obj.number }} sur {{ page_obj.paginator.num_pages }}
        </span>

        {% if page_obj.has_next %}
            <a href="?page={{ page_obj.next_page_number }}" role="button">suivant</a>
            <a href="?page={{ page_obj.paginator.num_pages }}" role="button">dernier &raquo;</a>
        {% endif %}
    </span>
</footer>
</article>


{% include "agenda_culturel/side-nav.html" with current="unknown_places" %}
</div>

{% endblock %}