{% extends "seevooplay/base.html" %} {% load add_to_calendar %} {% load i18n static %} {% block title %}{{ event.name }} {{ block.super }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ event.name }}

{% if messages %} {% endif %} {% if event.image %}
{% endif %}

{% if guest %} {% blocktrans with name=guest.name %}Greetings, {{ name }}!{% endblocktrans %} {% else %} {% blocktrans with username=request.user.username %}Greetings, admin {{ username }}!{% endblocktrans %} {% trans "Edit this event" %} {% endif %}

{% blocktrans %}You are invited to the following event. Please RSVP below!{% endblocktrans %}

{% trans "Event:" %}{{ event.name }}
{% if event.host2_name %}{% trans "Hosts:" %}{% else %}{% trans "Host:" %}{% endif %} {% if event.host1_email %}{% endif %}{{ event.host1_name }}{% if event.host1_email %}{% endif %} {% if event.host2_name %}{% trans "and" %} {% if event.host2_email %}{% endif %}{{ event.host2_name }}{% if event.host2_email %}{% endif %}{% endif %}
{% trans "When:" %} {{ date_display }}
{% trans "Where:" %} {{ event.location_name }}
{{ event.location_address }}
{% trans "Details:" %}{{ event.details|safe }}
{% url 'event_page' event_id=event.id guest_uuid=guest.short_uuid as event_page_path %} {% add_to_calendar event.name event.start_datetime event.end_datetime event.location_address request.scheme request.get_host event_page_path %}

{% trans "RSVP" %}

{% csrf_token %} {% for field in form %}
{{ field.errors }} {% if field.name != 'extra_guests' %}{% endif %} {% if field.name == 'extra_guests' %}{% trans "I will bring" %} {% endif %} {{ field }} {% if field.name == 'extra_guests' %} {% trans "additional guest(s) with me." %}{% endif %} {% if field.help_text %}

{{ field.help_text|safe }}

{% endif %}
{% endfor %}

{% trans "Replies" %}

{% blocktrans with count=yes_replies_count %}Yes: {{ count }}{% endblocktrans %}
{% blocktrans with count=maybe_replies_count %}Maybe: {{ count }}{% endblocktrans %}
{% blocktrans with count=no_replies.count %}No: {{ count }}{% endblocktrans %}
{% blocktrans with count=none_replies.count %}No Reply: {{ count }}{% endblocktrans %}
{% if yes_replies_count > 0 %}

{% trans "Yes" %}

{% with yes_replies as replies %} {% include 'seevooplay/event_replies.html' %} {% endwith %} {% endif %} {% if maybe_replies_count > 0 %}

{% trans "Maybe" %}

{% with maybe_replies as replies %} {% include 'seevooplay/event_replies.html' %} {% endwith %} {% endif %} {% if no_replies.count > 0 %}

{% trans "No" %}

{% with no_replies as replies %} {% include 'seevooplay/event_replies.html' %} {% endwith %} {% endif %} {% if none_replies.count > 0 %}

{% trans "No reply" %}

{% with none_replies as replies %} {% include 'seevooplay/event_replies.html' %} {% endwith %} {% endif %}
{% endblock %}