2020-07-25 12:30:53 +00:00
|
|
|
{% if not my_registration %}
|
2020-07-22 14:22:29 +00:00
|
|
|
<form action="{% url 'events:register' event.id %}" method="post">
|
2020-07-25 12:30:53 +00:00
|
|
|
{% else %}
|
|
|
|
<form action="{% url 'events:deregister' event.id %}" method="post">
|
|
|
|
{% endif %}
|
2020-07-22 14:22:29 +00:00
|
|
|
{% csrf_token %}
|
2020-07-25 11:45:12 +00:00
|
|
|
<p>{{ event.count_admitted }}/{{ event.capacity }} bevestigd{% if event.count_interested %},
|
|
|
|
{{ 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 %}
|
|
|
|
<p>Je moet inloggen voor je je kan inschrijven.</p>
|
|
|
|
{% 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:56:09 +00:00
|
|
|
<p>Mijn status: {{ my_registration.state_str }}</p>
|
|
|
|
|
|
|
|
<button type="submit">Uitschrijven</button>
|
2020-07-22 14:22:29 +00:00
|
|
|
{% endif %}
|
|
|
|
</form>
|