80 lines
3.7 KiB
HTML
80 lines
3.7 KiB
HTML
{% extends "chrono/manager_base.html" %}
|
|
{% load i18n thumbnail %}
|
|
|
|
{% block appbar %}
|
|
{% include 'chrono/includes/application_appbar_fragment.html' with title_no_application=_('Agendas outside applications') title_object_list=_('Agendas') %}
|
|
{% endblock %}
|
|
|
|
{% block breadcrumb %}
|
|
{{ block.super }}
|
|
{% url 'chrono-manager-homepage' as object_list_url %}
|
|
{% include 'chrono/includes/application_breadcrumb_fragment.html' with title_no_application=_('Agendas outside applications') %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% if object_list %}
|
|
{% regroup object_list by category as agenda_groups %}
|
|
{% for group in agenda_groups %}
|
|
<div class="section foldable" data-section-folded-pref-name="folded-admin-forms-group-{{forloop.counter}}">
|
|
{% if group.grouper %}<h3>{{ group.grouper }}</h3>{% elif not forloop.first %}<h3>{% trans "Misc" %}</h3>{% endif %}
|
|
<ul class="objects-list single-links">
|
|
{% for object in group.list %}
|
|
<li>
|
|
<a href="{% url 'chrono-manager-agenda-view' pk=object.id %}">
|
|
<span class="badge">{{ object.get_real_kind_display }}</span>
|
|
{% include 'chrono/includes/application_icon_fragment.html' %}
|
|
{{ object.label }}{% if user.is_staff %} <span class="identifier">[{% trans "identifier:" %} {{ object.slug }}]{% endif %}</span>
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endfor %}
|
|
{% elif not no_application %}
|
|
<div class="big-msg-info">
|
|
{% blocktrans trimmed %}
|
|
This site doesn't have any agenda yet. Click on the "New" button in the top
|
|
right of the page to add a first one.
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block sidebar %}
|
|
{% if with_sidebar and not application and not no_application %}
|
|
<aside id="sidebar">
|
|
|
|
{% if user.is_staff %}
|
|
<h3>{% trans "Actions" %}</h3>
|
|
<a class="button button-paragraph" rel="popup" href="{% url 'chrono-manager-agenda-add' %}">{% trans 'New agenda' %}</a>
|
|
<a class="button button-paragraph" rel="popup" href="{% url 'chrono-manager-agendas-export' %}" data-autoclose-dialog="true">{% trans 'Export site' %}</a>
|
|
<a class="button button-paragraph" rel="popup" href="{% url 'chrono-manager-agendas-import' %}">{% trans 'Import site' %}</a>
|
|
{% endif %}
|
|
|
|
{% if user.is_staff or has_access_to_unavailability_calendars %}
|
|
<h3>{% trans "Navigation" %}</h3>
|
|
{% if user.is_staff %}
|
|
<a class="button button-paragraph" href="{% url 'chrono-manager-category-list' %}">{% trans 'Categories' %}</a>
|
|
<a class="button button-paragraph" href="{% url 'chrono-manager-events-type-list' %}">{% trans 'Events types' %}</a>
|
|
{% if shared_custody_enabled %}
|
|
<a class="button button-paragraph" rel="popup" href="{% url 'chrono-manager-shared-custody-settings' %}">{% trans 'Shared custody' %}</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if has_access_to_unavailability_calendars %}
|
|
<a class="button button-paragraph" href="{% url 'chrono-manager-unavailability-calendar-list' %}">{% trans 'Unavailability calendars' %}</a>
|
|
{% endif %}
|
|
{% if user.is_staff %}
|
|
<a class="button button-paragraph" href="{% url 'chrono-manager-resource-list' %}">{% trans 'Resources' %}</a>
|
|
{% if ants_hub_enabled %}
|
|
<a class="button button-paragraph" href="{% url 'chrono-manager-ants-hub' %}">{% trans 'ANTS Hub' %}</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% include 'chrono/includes/application_list_fragment.html' with title_no_application=_('Agendas outside applications') %}
|
|
</aside>
|
|
{% endif %}
|
|
{% endblock %}
|