63 lines
2.4 KiB
HTML
63 lines
2.4 KiB
HTML
{% extends "agenda_culturel/page.html" %}
|
|
|
|
{% block title %}Questions de modération{% endblock %}
|
|
|
|
{% load utils_extra %}
|
|
{% load cat_extra %}
|
|
{% block entete_header %}
|
|
{% css_categories %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="grid two-columns">
|
|
<article>
|
|
<header>
|
|
<div class="slide-buttons">
|
|
<a href="{% url 'fix_unknown_places' %}" role="button" data-tooltip="Utiliser les alias des lieux pour les associer aux événements sans lieu">Détecter par alias {% picto_from_name "link" %}</a>
|
|
<a href="{% url 'add_place' %}" role="button">Ajouter {% picto_from_name "plus-circle" %}</a>
|
|
</div>
|
|
<h1>Lieux</h1>
|
|
</header>
|
|
{% include "agenda_culturel/navigation.html" with page_obj=page_obj %}
|
|
|
|
{% if object_list %}
|
|
{% for place in object_list %}
|
|
<article>
|
|
<header>
|
|
<div class="slide-buttons">
|
|
<a href="{% url 'view_place' place.pk %}" role="button">Consulter {% picto_from_name "eye" %}</a>
|
|
<a href="{% url 'edit_place' place.pk %}" role="button">Modifier {% picto_from_name "edit-3" %}</a>
|
|
<a href="{% url 'delete_place' place.pk %}" role="button">Supprimer {% picto_from_name "trash-2" %}</a>
|
|
</div>
|
|
<h2>{{ place.name }}</h2>
|
|
<ul>
|
|
<li><strong>Adresse :</strong> {{ place.address }}, {{ place.city }}</li>
|
|
<li><strong>Coordonnée GPS :</strong> {{ place.location }}</li>
|
|
</ul>
|
|
{% if place.aliases|length > 0 %}
|
|
<p><strong>Alias :</strong> {% for alias in place.aliases %}{{ alias }}{% if not forloop.last %}, {% endif %}{% endfor %} </p>
|
|
{% else %}
|
|
<p><em>Ce lieu n'a pas d'alias défini</em></p>
|
|
{% endif %}
|
|
{% if place.nb_events > 0 %}
|
|
<p><strong>Nombre d'événements :</strong> {{ place.nb_events }}</p>
|
|
{% else %}
|
|
<p><em>Aucun événement n'est enregistré dans ce lieu</em></p>
|
|
{% endif %}
|
|
</header>
|
|
|
|
</article>
|
|
{% endfor %}
|
|
{% else %}
|
|
<p>Il n'y a aucun lieu défini.</p>
|
|
{% endif %}
|
|
<footer>
|
|
{% include "agenda_culturel/navigation.html" with page_obj=page_obj %}
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
{% include "agenda_culturel/side-nav.html" with current="places" %}
|
|
</div>
|
|
|
|
{% endblock %} |