66 lines
2.7 KiB
HTML
66 lines
2.7 KiB
HTML
{% extends "chrono/manager_agenda_settings.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block agenda-extra-management-actions %}
|
|
<a rel="popup" href="{% url 'chrono-manager-agenda-import-events' pk=object.id %}">{% trans 'Import Events' %}</a>
|
|
<a rel="popup" href="{% url 'chrono-manager-agenda-add-event' pk=object.id %}">{% trans 'New Event' %}</a>
|
|
{% endblock %}
|
|
|
|
{% block agenda-settings %}
|
|
|
|
<div class="section">
|
|
<h3>{% trans "Events" %}</h3>
|
|
<div>
|
|
{% with view.get_events as events %}
|
|
{% if events %}
|
|
<ul class="objects-list single-links">
|
|
{% for event in events %}
|
|
<li class="{% if event.booked_places_count > event.places %}overbooking{% endif %}
|
|
{% if event.main_list_full %}full{% endif %}
|
|
{% if not event.in_bookable_period %}not-{% endif %}bookable"
|
|
{% if event.places %}
|
|
data-total="{{event.places}}" data-booked="{{event.booked_places_count}}"
|
|
{% elif event.waiting_list_places %}
|
|
data-total="{{event.waiting_list_places}}" data-booked="{{event.waiting_list_count}}"
|
|
{% endif %}
|
|
><a rel="popup" href="{% url 'chrono-manager-event-edit' pk=agenda.id event_pk=event.id %}?next=settings">
|
|
{% if event.main_list_full %}<span class="full tag">{% trans "Full" %}</span>{% endif %}
|
|
{% if event.label %}{{event.label}} {% endif %}[{% trans "identifier:" %} {{ event.slug }}]
|
|
{{ event.start_datetime }}
|
|
(
|
|
{% if event.places %}
|
|
{% blocktrans with places=event.places booked_places=event.booked_places_count %}{{ places }} places, {{ booked_places }} booked places{% endblocktrans %}
|
|
{% endif %}
|
|
{% if event.places and event.waiting_list_places %} / {% endif %}
|
|
{% if event.waiting_list_places %}
|
|
{% blocktrans with places=event.waiting_list_places waiting_places=event.waiting_list_count %}
|
|
{{waiting_places}} on {{ places }} in waiting list
|
|
{% endblocktrans %}
|
|
{% endif %}
|
|
)
|
|
{% if event.publication_date %}
|
|
({% trans "publication date:" %} {{ event.publication_date }})
|
|
{% endif %}
|
|
{% if not event.in_bookable_period %}
|
|
({% trans "out of bookable period" %})
|
|
{% endif %}
|
|
</a>
|
|
<a rel="popup" class="delete" href="{% url 'chrono-manager-event-delete' pk=agenda.id event_pk=event.id %}?next=settings">{% trans "remove" %}</a>
|
|
<span class="occupation-bar"></span>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<div class="big-msg-info">
|
|
{% blocktrans %}
|
|
This agenda doesn't have any event yet. Click on the "New Event" button in
|
|
the top right of the page to add a first one.
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|