{% extends "events/base.html" %}
{% load event_tags %}
{% load i18n %}

{% block body %}
<div class="t">
    {% event_nav user event %}
    <div class="info">
        <h1>{% firstof MODULE_EVENTS_LABEL 'Event' %} {% trans "Delete Page" %}</h1>
        <div class="delete-prompt">
            {% trans "Are you sure you want to permanently delete this event?" %}
        </div>
    </div>
    <div class="event-info" style="margin-top:10px;">
            
        <h3><a href="{% url event event.pk %}">{{ event.title }}</a></h3>
        <div class="place">{{ event.place }}</div>

        <div class="time-period">
            {{ event.start_dt|date:"l, M j, Y P" }} - {{ event.end_dt|date:"l, M j, Y P" }}
        </div>

        <div class="description">
        {% if event.meta.description %}
            {{ event.meta.description }}
        {% else %}
            {{ event.get_description }}
        {% endif %}
        </div>
        
        <div class="delete-form" style="margin-top:10px;">
            <form name="directory-delete" method="POST" action="{% url event.delete event.pk %}">{% csrf_token %}
                <input type="hidden" name="action" value="delete">
                <input type="submit" name="submit" value="{% trans 'Confirm Delete' %}">
            </form>
        </div>

    </div>
</div>
{% endblock %}
