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

{{ event.name }}

{% if messages %} {% endif %}

{% if guest %} Greetings, {{ guest.name }}! {% else %} Greetings, admin {{ request.user.username }}! Edit this event {% endif %}

You are invited to the following event. Please RSVP below!

Event:{{ event.name }}
{% if event.host2_name %}Hosts:{% else %}Host:{% endif %} {% if event.host1_email %}{% endif %}{{ event.host1_name }}{% if event.host1_email %}{% endif %} {% if event.host2_name %}and {% if event.host2_email %}{% endif %}{{ event.host2_name }}{% if event.host2_email %}{% endif %}{% endif %}
When: {{ date_display }}
Where: {{ event.location_name }}
{{ event.location_address }}
Details:{{ event.details|safe }}

RSVP

{% csrf_token %} {% for field in form %}
{{ field.errors }} {% if field.name != 'extra_guests' %} {% endif %} {% if field.name == 'extra_guests' %}I will bring {% endif %} {{ field }} {% if field.name == 'extra_guests' %} people with me.{% endif %} {% if field.help_text %}

{{ field.help_text|safe }}

{% endif %}
{% endfor %}

Replies

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

Yes

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

Maybe

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

No

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

No reply

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