92 lines
4.7 KiB
HTML
92 lines
4.7 KiB
HTML
{% extends "chrono/manager_agenda_settings.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block agenda-extra-management-actions %}
|
|
<a rel="popup" href="{% url 'chrono-manager-agenda-add-meeting-type' pk=object.id %}">{% trans 'New Meeting Type' %}</a>
|
|
<a rel="popup" href="{% url 'chrono-manager-agenda-add-desk' pk=object.id %}">{% trans 'New Desk' %}</a>
|
|
{% endblock %}
|
|
|
|
{% block agenda-settings %}
|
|
|
|
<div class="section">
|
|
<h3>{% trans 'Meeting Types' %}</h3>
|
|
<div>
|
|
{% if object.meetingtype_set.count %}
|
|
<ul class="objects-list single-links">
|
|
{% for meeting_type in object.meetingtype_set.all %}
|
|
<li><a rel="popup" href="{% if user_can_manage %}{% url 'chrono-manager-meeting-type-edit' pk=meeting_type.id %}{% else %}#{% endif %}">
|
|
{{meeting_type.label}}
|
|
<span class="duration">({{meeting_type.duration}} {% trans "minutes" %})</span>
|
|
<span class="identifier">[{% trans "identifier:" %} {{meeting_type.slug}}]</span>
|
|
</a>
|
|
{% if user_can_manage %}<a rel="popup" class="delete" href="{% url 'chrono-manager-meeting-type-delete' pk=meeting_type.id %}">{% trans "remove" %}</a>{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<div class="big-msg-info">
|
|
{% blocktrans %}
|
|
This agenda doesn't have any meeting type yet. Click on the "New Meeting Type" button in
|
|
the top right of the page to add a first one.
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<h3>{% trans 'Time Periods' %}</h3>
|
|
<div>
|
|
{% if object.desk_set.count %}
|
|
<div class="timeperiods">
|
|
{% for desk in object.desk_set.all %}
|
|
<div class="timeperiod">
|
|
{% url 'chrono-manager-agenda-add-time-period' agenda_pk=object.pk pk=desk.pk as add_time_period_url %}
|
|
<ul class="objects-list single-links">
|
|
{% if forloop.counter != 1 or forloop.revcounter != 1 %}
|
|
<li><a rel="popup" href="{% if user_can_manage %}{% url 'chrono-manager-desk-edit' pk=desk.id %}{% else %}#{% endif %}">
|
|
<strong>{{ desk.label }}</strong>
|
|
</a>
|
|
{% if user_can_manage %}<a rel="popup" class="delete" href="{% url 'chrono-manager-desk-delete' pk=desk.id %}">{% trans "remove" %}</a>{% endif %}
|
|
</li>
|
|
{% endif %}
|
|
{% for time_period in desk.timeperiod_set.all %}
|
|
<li><a rel="popup" href="{% if user_can_manage %}{% url 'chrono-manager-time-period-edit' pk=time_period.id %}{% else %}#{% endif %}">
|
|
{{time_period.weekday_str}} / {{time_period.start_time}} → {{time_period.end_time}} </a>
|
|
{% if user_can_manage %}<a rel="popup" class="delete" href="{% url 'chrono-manager-time-period-delete' pk=time_period.id %}">{% trans "remove" %}</a>{% endif %}
|
|
|
|
</li>
|
|
{% endfor %}
|
|
{% if user_can_manage %}
|
|
<li><a class="add" rel="popup" href="{{add_time_period_url}}">{% trans 'Add a time period' %}</a></li>
|
|
{% endif %}
|
|
{% if desk.timeperiod_set.count %}
|
|
{% url 'chrono-manager-agenda-add-time-period-exception' agenda_pk=object.pk pk=desk.pk as add_time_period_exception_url %}
|
|
<li><a href="#"><strong>{% trans 'Exceptions' %}</strong></a><a class="link-action-icon upload" rel="popup" href="{% url 'chrono-manager-desk-add-import-time-period-exceptions' pk=desk.pk %}" title="{% trans 'Import exceptions from .ics' %}">{% trans 'upload' %}</a></li>
|
|
{% for exception in desk.get_exceptions_within_two_weeks %}
|
|
<li><a rel="popup" href="{% if user_can_manage %}{% url 'chrono-manager-time-period-exception-edit' pk=exception.pk %}{% else %}#{% endif %}">
|
|
{{ exception }}
|
|
{% if user_can_manage %}<a rel="popup" class="delete" href="{% url 'chrono-manager-time-period-exception-delete' pk=exception.id %}">{% trans "remove" %}</a>{% endif %}
|
|
{% endfor %}
|
|
{% if not desk.are_all_exceptions_displayed %}
|
|
<li><a class="timeperiod-exception-all" rel="popup" data-selector="div.timeperiod" href="{% url 'chrono-manager-time-period-exception-extract-list' pk=desk.id %}">({% trans 'see all exceptions' %})</a></li>
|
|
{% endif %}
|
|
<li><a class="add" rel="popup" href="{{add_time_period_exception_url}}">{% trans 'Add a time period exception' %}</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<div class="big-msg-info">
|
|
{% blocktrans %}
|
|
This agenda doesn't have any desk yet. Click on the "New Desk" button in
|
|
the top right of the page to add a first one.
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|