Ajout d'outils pour le debug

This commit is contained in:
Jean-Marie Favreau 2024-04-28 10:16:15 +02:00
parent 675a6cedd4
commit 25460b96ba
2 changed files with 24 additions and 1 deletions

View File

@ -24,7 +24,7 @@
<form method="post">{% csrf_token %} <form method="post">{% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<div class="grid"> <div class="grid buttons">
<a href="{% if request.META.HTTP_REFERER %}{{ request.META.HTTP_REFERER }}{% else %}{% url 'duplicates' %}{% endif %}" role="button" class="secondary">Annuler</a> <a href="{% if request.META.HTTP_REFERER %}{{ request.META.HTTP_REFERER }}{% else %}{% url 'duplicates' %}{% endif %}" role="button" class="secondary">Annuler</a>
<input type="submit" value="Appliquer"> <input type="submit" value="Appliquer">
</div> </div>
@ -66,5 +66,15 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</article> </article>
<article>
<header><h2>Informations techniques</h2></header>
{% for e in object.get_duplicated %}
<article>
<h3>{{ e }}</h3>
{% include "agenda_culturel/event-info-inc.html" with object=e %}
</article>
{% endfor %}
</article>
{% endblock %} {% endblock %}

View File

@ -13,7 +13,20 @@
{% block content %} {% block content %}
<div class="grid two-columns"> <div class="grid two-columns">
<div>
{% include "agenda_culturel/single-event/event-single-inc.html" with event=event filter=filter %} {% include "agenda_culturel/single-event/event-single-inc.html" with event=event filter=filter %}
<article>
<header>
<h2>Informations internes</h2>
</header>
{% if user.is_authenticated %}
{% include "agenda_culturel/event-info-inc.html" with object=event %}
{% endif %}
</article>
</div>
<aside> <aside>
{% with event.get_concurrent_events as concurrent_events %} {% with event.get_concurrent_events as concurrent_events %}
{% if concurrent_events %} {% if concurrent_events %}