80 lines
2.6 KiB
HTML
80 lines
2.6 KiB
HTML
{% extends "chrono/manager_agenda_settings.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block agenda-extra-management-actions %}
|
|
<a rel="popup" href="{% url 'chrono-manager-virtual-agenda-add-time-period' pk=object.id %}">{% trans 'Add Excluded Period' %}</a>
|
|
<a rel="popup" href="{% url 'chrono-manager-agenda-add-virtual-member' pk=object.id %}">{% trans 'Include Agenda' %}</a>
|
|
{% endblock %}
|
|
|
|
{% block agenda-settings %}
|
|
|
|
<div class="section">
|
|
<h3>{% trans 'Included Agendas' %}</h3>
|
|
<div>
|
|
{% if virtual_members %}
|
|
<ul class="objects-list single-links">
|
|
{% for virtual_member, can_be_managed in virtual_members %}
|
|
<li><a {% if can_be_managed %}href="{% url 'chrono-manager-agenda-settings' pk=virtual_member.real_agenda.id %}"{% endif %}>
|
|
{{virtual_member.real_agenda.label}}
|
|
</a>
|
|
<a rel="popup" class="delete" href="{% url 'chrono-manager-virtual-member-delete' pk=virtual_member.pk %}">{% trans "remove" %}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<div class="big-msg-info">
|
|
{% blocktrans %}
|
|
This virtual agenda doesn't include any agenda yet. Click on the "Include Agenda" button in
|
|
the top right of the page to include a first one.
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% if virtual_members %}
|
|
<div class="section">
|
|
<h3>{% trans 'Meeting Types' %}</h3>
|
|
<div>
|
|
{% if meeting_types %}
|
|
<ul class="objects-list single-links">
|
|
{% for meeting_type in meeting_types %}
|
|
<li><a rel="popup" href="">
|
|
{{meeting_type.label}}
|
|
<span class="duration">({{meeting_type.duration}} {% trans "minutes" %})</span>
|
|
<span class="identifier">[{% trans "identifier:" %} {{meeting_type.slug}}]</span>
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<div class="errornotice">
|
|
{% blocktrans %}
|
|
This virtual agenda doesn't have any meeting type.
|
|
It is probably because its included agendas have incompatible meeting types
|
|
and it makes this virtual agenda unusable.
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if agenda.excluded_timeperiods.count %}
|
|
<div class="section">
|
|
<h3>{% trans 'Excluded Periods' %}</h3>
|
|
<div>
|
|
<ul class="objects-list single-links">
|
|
{% for time_period in agenda.excluded_timeperiods.all %}
|
|
<li><a rel="popup" href="{% url 'chrono-manager-time-period-edit' pk=time_period.id %}">
|
|
{{time_period.weekday_str}} / {{time_period.start_time}} → {{time_period.end_time}}</a>
|
|
<a rel="popup" class="delete" href="{% url 'chrono-manager-time-period-delete' pk=time_period.id %}">{% trans "remove" %}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|