31 lines
720 B
HTML
31 lines
720 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Events{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2>Events</h2>
|
|
|
|
{% if events %}
|
|
<ul>
|
|
{% for x in events %}
|
|
<li id="{{x.event.id}}">
|
|
<h3>{{ x.event.date|date:"d F Y" }}, {{ x.event.time_str }}
|
|
{% if user.is_staff %}
|
|
<a href="/admin/events/event/{{ x.event.id }}/change/">Modificeren</a>
|
|
{% endif %}</h3>
|
|
|
|
<p>Verantwoordelijke: {{ x.event.responsible_person.username }}</p>
|
|
|
|
{% if x.event.note %}
|
|
<p>Beschrijving: {{ x.event.note }}</p>
|
|
{% endif %}
|
|
|
|
{% include "events/registrations.html" with event=x.event my_registration=x.my_registration %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>Geen events binnenkort</p>
|
|
{% endif %}
|
|
{% endblock %}
|