chrono/chrono/manager/templates/chrono/manager_agenda_settings.html

60 lines
1.7 KiB
HTML

{% extends "chrono/manager_agenda_view.html" %}
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
{% if desk %}
<a href="{% url 'chrono-manager-agenda-settings' desk.agenda_id %}">{% trans "Settings" %}</a>
{% else %}
<a href=".">{% trans "Settings" %}</a>
{% endif %}
{% endblock %}
{% block appbar %}
<h2>{% trans "Settings" %}
<span class="identifier">[{% trans "identifier:" %} {{object.slug}}]</span>
</h2>
<span class="actions">
{% if user.is_staff %}
<a rel="popup" href="{% url 'chrono-manager-agenda-delete' pk=object.id %}">{% trans 'Delete' %}</a>
{% endif %}
{% if user_can_manage %}
<a download href="{% url 'chrono-manager-agenda-export' pk=object.id %}">{% trans 'Export' %}</a>
<a rel="popup" href="{% url 'chrono-manager-agenda-edit' pk=object.id %}">{% trans 'Options' %}</a>
{% block agenda-extra-management-actions %}
{% endblock %}
{% endif %}
</span>
{% endblock %}
{% block content %}
{% block agenda-settings %}
{% endblock %}
{% block agenda-permissions %}
<div class="section">
<h3>{% trans "Permissions" %}</h3>
<div>
<ul>
<li>{% trans "Edit Role:" %} {% if agenda.edit_role %}{{ agenda.edit_role }}{% else %}<i>{% trans "undefined" %}</i>{% endif %}</li>
<li>{% trans "View Role:" %} {% if agenda.view_role %}{{ agenda.view_role }}{% else %}<i>{% trans "undefined" %}</i>{% endif %}</li>
</ul>
</div>
</div>
{% endblock %}
{% block agenda-booking-delays %}
<div class="section">
<h3>{% trans "Booking Delays" %}</h3>
<div>
<ul>
<li>{% trans "Minimal booking delay:" %} {{ agenda.minimal_booking_delay }} {% trans "days" %}</li>
<li>{% trans "Maximal booking delay:" %} {{ agenda.maximal_booking_delay }} {% trans "days" %}</li>
</ul>
</div>
</div>
{% endblock %}
{% endblock %}