46 lines
1.5 KiB
HTML
46 lines
1.5 KiB
HTML
{% extends "chrono/manager_agenda_view.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block bodyargs %}class="openevents"{% endblock %}
|
|
|
|
{% block breadcrumb %}
|
|
{{ block.super }}
|
|
<a href="{% url 'chrono-manager-agenda-open-events-view' pk=agenda.pk %}">{% trans "Open events" %}</a>
|
|
{% endblock %}
|
|
|
|
{% block actions %}
|
|
{% if agenda.subscriptions.exists %}
|
|
<a class="extra-actions-menu-opener"></a>
|
|
<ul class="extra-actions-menu">
|
|
<li><a href="{% url 'chrono-manager-events-timesheet' pk=agenda.pk %}">{% trans 'Timesheet' %}</a></li>
|
|
</ul>
|
|
{% endif %}
|
|
{{ block.super }}
|
|
<a href="{% url 'chrono-manager-agenda-month-redirect-view' pk=agenda.pk %}">{% trans 'Month view' %}</a>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="section">
|
|
<h3>{% trans "Open events" %}</h3>
|
|
<div>
|
|
{% if open_events %}
|
|
{% for event in open_events %}
|
|
{% ifchanged event.start_datetime|date:'n' event.start_datetime|date:'y' %}
|
|
{% if not forloop.first %}</ul>{% endif %}
|
|
<h4>{{ event.start_datetime|date:'YEAR_MONTH_FORMAT'|capfirst }}</h4>
|
|
<ul class="objects-list single-links">
|
|
{% endifchanged %}
|
|
{% include 'chrono/manager_agenda_event_fragment.html' %}
|
|
{% if forloop.last %}</ul>{% endif %}
|
|
{% endfor %}
|
|
{% else %}
|
|
<div class="big-msg-info">
|
|
{% blocktrans %}
|
|
This agenda doesn't have any open event configured.
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|