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

{{ object }}

{% if object.description %} {% endif %} {% if object.street %} {% endif %} {% if object.city %} {% endif %} {% if object.zip %} {% endif %} {% if object.country %} {% endif %} {% if object.contact_person %} {% endif %} {% if object.contact_email %} {% endif %} {% if object.contact_phone %} {% endif %} {% if object.available_seats and not object.hide_available_seats %} {% endif %} {% if object.max_seats_per_guest %} {% endif %} {% if user.is_staff %} {% endif %}
{% trans "Title" %} {{ object.title }}
{% trans "Description" %} {{ object.description }}
{% trans "Starting" %} {{ object.start }}
{% trans "Ending" %} {{ object.end }}
{% trans "Venue" %} {{ object.venue }}
{% trans "Street" %} {{ object.street }}
{% trans "City" %} {{ object.city }}
{% trans "ZIP code" %} {{ object.zip }}
{% trans "Country" %} {{ object.country }}
{% trans "Contact" %} {{ object.contact_person }}
{% trans "Email" %} {{ object.contact_email }}
{% trans "Phone" %} {{ object.contact_phone }}
{% trans "Available seats" %} {{ object.available_seats }}
{% trans "Maximum amount of seats per guest" %} {{ object.max_seats_per_guest }}
{% trans "Free seats" %} {{ object.get_free_seats }}
{% if user.is_staff %} {% else %} {% if object.get_free_seats < 1 and object.is_bookable %}

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

{% elif object.is_bookable %} {% trans "Participate" %} {% endif %} {% endif %} {% endblock %}