manager: fix display of "check event" button (#82839)
gitea/chrono/pipeline/head Build queued... Details

This commit is contained in:
Lauréline Guérin 2023-10-26 09:33:58 +02:00 committed by Lauréline Guérin
parent 72be0166f3
commit 737ba6f0bb
2 changed files with 9 additions and 5 deletions

View File

@ -30,7 +30,7 @@
<tbody>
{% if results and not event.checked and not event.check_locked %}
<tr class="booking">
<td class="booking-actions">
<td class="booking-actions" colspan="3">
<form method="post" action="{% url 'chrono-manager-event-checked' pk=agenda.pk event_pk=object.pk %}">
{% csrf_token %}
<button class="submit-button">{% trans "Mark the event as checked" %}</button>

View File

@ -34,10 +34,14 @@
</div>
{% if results and not event.checked and not event.check_locked %}
<form method="post" action="{% url 'chrono-manager-event-checked' pk=agenda.pk event_pk=event.pk %}">
{% csrf_token %}
<button class="submit-button">{% trans "Mark the event as checked" %}</button>
</form>
<div class="section">
<div>
<form method="post" action="{% url 'chrono-manager-event-checked' pk=agenda.pk event_pk=event.pk %}">
{% csrf_token %}
<button class="submit-button">{% trans "Mark the event as checked" %}</button>
</form>
</div>
</div>
{% endif %}
<div class="partial-booking" style="--nb-hours: {{ hours|length }}">