310 lines
12 KiB
HTML
310 lines
12 KiB
HTML
{% load i18n %}
|
|
<div class="pk-tabs">
|
|
<div class="pk-tabs--tab-list" role="tablist">
|
|
<button aria-controls="panel-information" aria-selected="true" id="tab-information" role="tab" tabindex="0">{% trans "Information" %}</button>
|
|
<button aria-controls="panel-settings" aria-selected="false" id="tab-settings" role="tab" tabindex="-1">{% trans "Settings" %}</button>
|
|
<button aria-controls="panel-permissions" aria-selected="false" id="tab-permissions" role="tab" tabindex="-1">{% trans "Permissions" %}</button>
|
|
{% if object.kind == 'events' %}
|
|
<button aria-controls="panel-events" aria-selected="false" id="tab-events" role="tab" tabindex="-1">{% trans "Events" %}</button>
|
|
<button aria-controls="panel-exceptions" aria-selected="false" id="tab-exceptions" role="tab" tabindex="-1">{% trans "Recurrence exceptions" %}</button>
|
|
{% elif object.kind == 'meetings' %}
|
|
<button aria-controls="panel-meeting-types" aria-selected="false" id="tab-meeting-types" role="tab" tabindex="-1">{% trans "Meeting Types" %}</button>
|
|
<button aria-controls="panel-desks" aria-selected="false" id="tab-desks" role="tab" tabindex="-1">{% trans "Desks" %}</button>
|
|
<button aria-controls="panel-resources" aria-selected="false" id="tab-resources" role="tab" tabindex="-1">{% trans "Resources" %}</button>
|
|
{% elif object.kind == 'virtual' %}
|
|
<button aria-controls="panel-agendas" aria-selected="false" id="tab-agendas" role="tab" tabindex="-1">{% trans "Included Agendas" %}</button>
|
|
<button aria-controls="panel-time-periods" aria-selected="false" id="tab-time-periods" role="tab" tabindex="-1">{% trans "Exception Periods" %}</button>
|
|
{% endif %}
|
|
</div>
|
|
<div class="pk-tabs--container">
|
|
|
|
<div aria-labelledby="tab-information" id="panel-information" role="tabpanel" tabindex="0">
|
|
<div class="section">
|
|
<ul>
|
|
{% for label, value in object.get_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div aria-labelledby="tab-settings" hidden id="panel-settings" role="tabpanel" tabindex="0">
|
|
<div class="section">
|
|
|
|
{% if object.kind != 'virtual' %}
|
|
<h4>{% trans "Display options" %}</h4>
|
|
<ul>
|
|
{% for label, value in object.get_display_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if object.kind == 'events' %}
|
|
<h4>{% trans "Booking check options" %}</h4>
|
|
<ul>
|
|
{% for label, value in object.get_booking_check_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if object.kind == 'events' %}
|
|
{% if agenda.partial_bookings %}
|
|
<h4>{% trans "Invoicing options" %}</h4>
|
|
<ul>
|
|
{% for label, value in object.get_invoicing_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<h4>{% trans "Management notifications" %}</h4>
|
|
<ul>
|
|
{% for label, value in object.get_notifications_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if object.kind != 'virtual' and not object.partial_bookings %}
|
|
<h4>{% trans "Booking reminders" %}</h4>
|
|
<ul>
|
|
{% for label, value in object.get_reminder_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
<h4>{% trans "Booking Delays" %}</h4>
|
|
<ul>
|
|
{% for label, value in object.get_booking_delays_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div aria-labelledby="tab-permissions" hidden id="panel-permissions" role="tabpanel" tabindex="0">
|
|
<div class="section">
|
|
<ul>
|
|
{% for label, value in object.get_permissions_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
{% if object.kind == 'events' %}
|
|
|
|
<div aria-labelledby="tab-events" hidden id="panel-events" role="tabpanel" tabindex="0">
|
|
<div class="section">
|
|
{% for event in object.event_set.all %}
|
|
<h4>{{ event }}</h4>
|
|
<ul>
|
|
{% for label, value in event.get_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<div aria-labelledby="tab-exceptions" hidden id="panel-exceptions" role="tabpanel" tabindex="0">
|
|
<div class="section">
|
|
{% for desk in object.desk_set.all %}{% if desk.slug == '_exceptions_holder' %}
|
|
<h4>{% trans "Unavailability calendars" %}</h4>
|
|
<ul>
|
|
{% for unavailability_calendar in desk.unavailability_calendars.all %}
|
|
<li class="parameter-unavailability-calendar }}">
|
|
{{ unavailability_calendar }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<h4>{% trans "Exception sources" %}</h4>
|
|
{% for source in desk.timeperiodexceptionsource_set.all %}
|
|
<h5>{{ source }}</h5>
|
|
<ul>
|
|
{% for label, value in source.get_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
|
|
<h4>{% trans "Exceptions" %}</h4>
|
|
{% for exception in desk.timeperiodexception_set.all %}
|
|
<h5>{{ exception }}</h5>
|
|
<ul>
|
|
{% for label, value in exception.get_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
{% endif %}{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
{% elif object.kind == 'meetings' %}
|
|
|
|
<div aria-labelledby="tab-meeting-types" hidden id="panel-meeting-types" role="tabpanel" tabindex="0">
|
|
<div class="section">
|
|
{% for meeting_type in object.meetingtype_set.all %}
|
|
<h4>{{ meeting_type }}</h4>
|
|
<ul>
|
|
{% for label, value in meeting_type.get_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<div aria-labelledby="tab-desks" hidden id="panel-desks" role="tabpanel" tabindex="0">
|
|
<div class="section">
|
|
{% for desk in object.desk_set.all %}
|
|
<h4>{{ desk }}</h4>
|
|
<ul>
|
|
{% for label, value in desk.get_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<h5>{% trans "Opening hours" %}</h5>
|
|
{% for time_period in desk.timeperiod_set.all %}
|
|
<h6>{{ time_period }}</h6>
|
|
<ul>
|
|
{% for label, value in time_period.get_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
|
|
<h5>{% trans "Unavailability calendars" %}</h5>
|
|
<ul>
|
|
{% for unavailability_calendar in desk.unavailability_calendars.all %}
|
|
<li class="parameter-unavailability-calendar }}">
|
|
{{ unavailability_calendar }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<h5>{% trans "Exception sources" %}</h5>
|
|
{% for source in desk.timeperiodexceptionsource_set.all %}
|
|
<h6>{{ source }}</h6>
|
|
<ul>
|
|
{% for label, value in source.get_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
|
|
<h5>{% trans "Exceptions" %}</h5>
|
|
{% for exception in desk.timeperiodexception_set.all %}
|
|
<h6>{{ exception }}</h6>
|
|
<ul>
|
|
{% for label, value in exception.get_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<div aria-labelledby="tab-resources" hidden id="panel-resources" role="tabpanel" tabindex="0">
|
|
<div class="section">
|
|
<ul>
|
|
{% for resource in object.resources.all %}
|
|
<li class="parameter-resource }}">
|
|
{{ resource }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
{% elif object.kind == "virtual" %}
|
|
|
|
<div aria-labelledby="tab-agendas" hidden id="panel-agendas" role="tabpanel" tabindex="0">
|
|
<div class="section">
|
|
<ul>
|
|
{% for agenda in object.real_agendas.all %}
|
|
<li class="parameter-agenda }}">
|
|
{{ agenda }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div aria-labelledby="tab-time-periods" hidden id="panel-time-periods" role="tabpanel" tabindex="0">
|
|
<div class="section">
|
|
{% for time_period in object.excluded_timeperiods.all %}
|
|
<h4>{{ time_period }}</h4>
|
|
<ul>
|
|
{% for label, value in time_period.get_inspect_fields %}
|
|
<li class="parameter-{{ label|slugify }}">
|
|
<span class="parameter">{% blocktrans %}{{ label }}:{% endblocktrans %}</span>
|
|
{{ value }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|