Reorder event list item info a bit

This commit is contained in:
Midgard 2020-07-25 13:45:12 +02:00
parent aaabde9be3
commit 6d6e12a999
Signed by: midgard
GPG key ID: 511C112F1331BBB4
2 changed files with 4 additions and 5 deletions

View file

@ -9,10 +9,10 @@
<ul>
{% for x in events %}
<li id="{{x.event.id}}">
{{ x.event.date|date:"d F Y" }}, {{ x.event.time_str }}{% if x.event.note %}, <b>{{ x.event.note }}</b>{% endif %}
{% if user.is_staff %}
<a href="/admin/events/event/{{ x.event.id }}/change/">Edit</a>
{% endif %}
{{ x.event.date|date:"d F Y" }}, {{ x.event.time_str }}{% if x.event.note %}, <b>{{ x.event.note }}</b>{% endif %}
{% include "events/registrations.html" with event=x.event my_registration=x.my_registration %}
</li>
{% endfor %}

View file

@ -2,11 +2,10 @@
{% csrf_token %}
<p>Verantwoordelijke: {{ event.responsible_person.username }}</p>
<p>{{ event.count_admitted }}/{{ event.capacity }} bevestigd</p>
{% if event.count_interested %}
<p>{{ event.count_interested }} in wachtlijst</p>
<p>{{ event.count_admitted }}/{{ event.capacity }} bevestigd{% if event.count_interested %},
{{ event.count_interested }} op wachtlijst
{% endif %}
</p>
{% if not user.is_authenticated %}
<p>Je moet inloggen voor je je kan inschrijven.</p>