65 lines
2.6 KiB
HTML
65 lines
2.6 KiB
HTML
{% extends "chrono/manager_home.html" %}
|
|
{% load static i18n %}
|
|
|
|
{% block extrascripts %}
|
|
{{ block.super }}
|
|
<script src="{% static 'js/chrono_events.manager.js' %}"></script>
|
|
{% endblock %}
|
|
|
|
{% block page-title-extra-label %}
|
|
- {% firstof agenda.label event.label %}
|
|
{% endblock %}
|
|
|
|
{% block breadcrumb %}
|
|
{{ block.super }}
|
|
<a href="{% url 'chrono-manager-agenda-view' pk=agenda.id %}">{{agenda.label}}</a>
|
|
<a href="{% url 'chrono-manager-event-view' pk=agenda.id event_pk=event.id %}">{{event}}</a>
|
|
{% endblock %}
|
|
|
|
{% block appbar %}
|
|
<h2>
|
|
{% if event.label %}
|
|
{{ event.label }} — {{event.start_datetime|date:"DATETIME_FORMAT"}}
|
|
{% else %}
|
|
{{ event.start_datetime|date:"DATETIME_FORMAT"}}
|
|
{% endif %}
|
|
{% if event.cancellation_status %}<span class="tag">{{ event.cancellation_status }}</span>{% endif %}
|
|
{% if event.main_list_full %}<span class="tag">{% trans "Full" %}</span>{% endif %}
|
|
{% if event.checked %}<span class="tag">{% trans "Checked" %}</span>{% endif %}
|
|
</h2>
|
|
{% block appbar_actions %}
|
|
<span class="actions">
|
|
{% if user_can_manage or event.agenda.booking_form_url %}
|
|
<a class="extra-actions-menu-opener"></a>
|
|
<ul class="extra-actions-menu">
|
|
{% if user_can_manage %}
|
|
{% if not event.primary_event %}
|
|
<li><a rel="popup" href="{% url 'chrono-manager-event-delete' pk=event.agenda.id event_pk=event.id %}">{% trans 'Delete' %}</a></li>
|
|
{% endif %}
|
|
{% if not event.cancellation_status %}
|
|
<li><a rel="popup" href="{% url 'chrono-manager-event-cancel' pk=agenda.pk event_pk=event.pk %}?next={{ request.path }}">{% trans "Cancel" %}</a></li>
|
|
{% endif %}
|
|
<li><a href="{% url 'chrono-manager-event-edit' pk=agenda.id event_pk=event.id %}">{% trans "Options" %}</a></li>
|
|
{% endif %}
|
|
{% if event.agenda.booking_form_url %}
|
|
<li><a href="{{ event.get_booking_form_url }}&ReturnURL={{ request.build_absolute_uri }}">{% trans "Booking form" %}</a></li>
|
|
{% endif %}
|
|
{% if not event.cancelled and agenda.subscriptions.exists %}
|
|
<li><a href="{% url 'chrono-manager-event-timesheet' pk=agenda.pk event_pk=event.pk %}">{% trans "Timesheet" %}</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
{% endif %}
|
|
{% if event.is_day_past and not event.cancelled %}
|
|
<a href="{% url 'chrono-manager-event-check' pk=agenda.pk event_pk=event.pk %}">{% trans "Check" %}</a>
|
|
{% endif %}
|
|
</span>
|
|
{% endblock %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id="event_details">
|
|
{% include "chrono/manager_event_detail_fragment.html" %}
|
|
</div>
|
|
|
|
{% endblock %}
|