kers/events/templates/events/registrations.html
redfast00 52b2c31c10
Round amount of interested/admitted people in events
We round this number to avoid people not registering for an event
because the event is at max capacity and they would bump it to an
online event. We don't hide the number entirely in order to not
put off people when there aren't a lot of people interested/admitted.
2021-05-09 02:50:50 +02:00

24 lines
1 KiB
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 }}, tussen {{ timeslot.lower_admitted }} en {{ timeslot.upper_admitted }} van de mogelijke {{ event.capacity }} aanwezigheden bevestigd{% if timeslot.count_interested %},
tussen {{ timeslot.lower_interested }} en {{ timeslot.upper_interested }} mensen 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>