kers/events/templates/events/registrations.html
2020-08-04 03:32:02 +02:00

24 lines
903 B
HTML

{% if not my_registration %}
<form action="{% url 'events:register' timeslot.id %}" method="post">
{% else %}
<form action="{% url 'events:deregister' timeslot.id %}" method="post">
{% endif %}
{% csrf_token %}
<p>{{ timeslot.time_str }}, {{ timeslot.count_admitted }}/{{ event.capacity }} bevestigd{% if timeslot.count_interested %},
{{ event.count_interested }} op wachtlijst
{% endif %}
</p>
{% if not user.is_authenticated %}
<p><i>Je moet inloggen voor je je kan inschrijven.</i></p>
{% elif not user.has_ugent_info %}
<p class="text--important">Je moet je studentennummer en echte naam invullen in je profiel voor je je kan inschrijven.</p>
{% elif not my_registration %}
<button type="submit">Ik wil komen</button>
{% else %}
<p><strong>Mijn status: {{ my_registration.state_str }}</strong></p>
<button class="cancel" type="submit">Uitschrijven</button>
{% endif %}
</form>