{% extends "base.html" %} {% load i18n %} {% block main %}

{% if form.instance.pk %} {% trans "Update participation on" %} {{ event }} {% else %} {% trans "Participate on" %} {{ event }} {% endif %}

{% if event.is_bookable and event.get_free_seats > 0 and permission_to_book %}
{% csrf_token %} {{ form.non_field_errors }} {{ form.as_p }}
{% elif not event.is_bookable %}

{% trans "We're sorry. The event has already started." %}

{% elif event.get_free_seats == 0 %}

{% trans "We're sorry. The event is fully booked." %}

{% else %}

{% trans "We're sorry. You need to be logged in to book this event." %}

{% endif %} {% endblock %}