2020-07-25 12:30:53 +00:00
|
|
|
{% if not my_registration %}
|
2020-08-04 01:32:02 +00:00
|
|
|
<form action="{% url 'events:register' timeslot.id %}" method="post">
|
2020-07-25 12:30:53 +00:00
|
|
|
{% else %}
|
2020-08-04 01:32:02 +00:00
|
|
|
<form action="{% url 'events:deregister' timeslot.id %}" method="post">
|
2020-07-25 12:30:53 +00:00
|
|
|
{% endif %}
|
2020-07-22 14:22:29 +00:00
|
|
|
{% csrf_token %}
|
2020-08-04 01:32:02 +00:00
|
|
|
<p>{{ timeslot.time_str }}, {{ timeslot.count_admitted }}/{{ event.capacity }} bevestigd{% if timeslot.count_interested %},
|
2020-07-25 11:45:12 +00:00
|
|
|
{{ event.count_interested }} op wachtlijst
|
2020-07-22 14:22:29 +00:00
|
|
|
{% endif %}
|
2020-07-25 11:45:12 +00:00
|
|
|
</p>
|
2020-07-22 14:22:29 +00:00
|
|
|
|
2020-07-22 16:19:42 +00:00
|
|
|
{% if not user.is_authenticated %}
|
2020-08-04 01:32:02 +00:00
|
|
|
<p><i>Je moet inloggen voor je je kan inschrijven.</i></p>
|
2020-07-22 16:19:42 +00:00
|
|
|
{% elif not user.has_ugent_info %}
|
2020-07-27 15:44:16 +00:00
|
|
|
<p class="text--important">Je moet je studentennummer en echte naam invullen in je profiel voor je je kan inschrijven.</p>
|
2020-07-22 16:19:42 +00:00
|
|
|
{% elif not my_registration %}
|
2020-07-27 15:56:09 +00:00
|
|
|
<button type="submit">Ik wil komen</button>
|
2020-07-22 14:22:29 +00:00
|
|
|
{% else %}
|
2020-07-27 15:58:46 +00:00
|
|
|
<p><strong>Mijn status: {{ my_registration.state_str }}</strong></p>
|
2020-08-04 01:32:02 +00:00
|
|
|
|
2020-07-27 15:57:52 +00:00
|
|
|
<button class="cancel" type="submit">Uitschrijven</button>
|
2020-07-22 14:22:29 +00:00
|
|
|
{% endif %}
|
|
|
|
</form>
|