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> <ul>
{% for x in events %} {% for x in events %}
<li id="{{x.event.id}}"> <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 %} {% if user.is_staff %}
<a href="/admin/events/event/{{ x.event.id }}/change/">Edit</a> <a href="/admin/events/event/{{ x.event.id }}/change/">Edit</a>
{% endif %} {% 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 %} {% include "events/registrations.html" with event=x.event my_registration=x.my_registration %}
</li> </li>
{% endfor %} {% endfor %}

View file

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