misc: apply djhtml (#69404)

This commit is contained in:
Valentin Deniaud 2022-09-21 17:28:29 +02:00
parent 651931f7d2
commit 7c0eb04c45
79 changed files with 2173 additions and 2173 deletions

View File

@ -2,15 +2,15 @@
{% load i18n %}
{% block content %}
<p>{% trans "Hi," %}</p>
<p>{% trans "Hi," %}</p>
<p>
{% blocktrans %}
You have been notified because the status of event "{{ event }}" has changed.
{% endblocktrans %}
</p>
<p>
{% blocktrans %}
You have been notified because the status of event "{{ event }}" has changed.
{% endblocktrans %}
</p>
{% with _("View event") as button_label %}
{% include "emails/button-link.html" with url=event_url label=button_label %}
{% endwith %}
{% with _("View event") as button_label %}
{% include "emails/button-link.html" with url=event_url label=button_label %}
{% endwith %}
{% endblock %}

View File

@ -2,35 +2,35 @@
{% load i18n %}
{% block content %}
<p>{% trans "Hi," %}</p>
<p>{% trans "Hi," %}</p>
<p>
{% blocktrans trimmed with event=booking.event date=date|date:"l j F" time=date|time %}
You have a booking for event "{{ event }}", on {{ date }} at {{ time }}.
{% endblocktrans %}
</p>
<p>
{% blocktrans trimmed with event=booking.event date=date|date:"l j F" time=date|time %}
You have a booking for event "{{ event }}", on {{ date }} at {{ time }}.
{% endblocktrans %}
</p>
{% if email_extra_info %}
<p>{{ email_extra_info|force_escape|linebreaks }}</p>
{% endif %}
{% if email_extra_info %}
<p>{{ email_extra_info|force_escape|linebreaks }}</p>
{% endif %}
{% if booking.event.description %}
<p>{% trans "Additional information:" %}</p>
{{ booking.event.description|linebreaks }}
{% endif %}
{% if booking.event.description %}
<p>{% trans "Additional information:" %}</p>
{{ booking.event.description|linebreaks }}
{% endif %}
{% if booking.event.pricing %}
<p>{% trans "Pricing:" %} {{ booking.event.pricing }}</p>
{% endif %}
{% if booking.event.pricing %}
<p>{% trans "Pricing:" %} {{ booking.event.pricing }}</p>
{% endif %}
{% if booking.event.url %}
{% firstof event_url_button_label _("More information") as button_label %}
{% include "emails/button-link.html" with url=booking.event.url label=button_label %}
{% endif %}
{% if booking.event.url %}
{% firstof event_url_button_label _("More information") as button_label %}
{% include "emails/button-link.html" with url=booking.event.url label=button_label %}
{% endif %}
{% if booking.form_url %}
{% with _("Edit or cancel booking") as button_label %}
{% include "emails/button-link.html" with url=booking.get_form_url label=button_label %}
{% endwith %}
{% endif %}
{% if booking.form_url %}
{% with _("Edit or cancel booking") as button_label %}
{% include "emails/button-link.html" with url=booking.get_form_url label=button_label %}
{% endwith %}
{% endif %}
{% endblock %}

View File

@ -2,27 +2,27 @@
{% load i18n %}
{% block content %}
<p>{% trans "Hi," %}</p>
<p>{% trans "Hi," %}</p>
<p>
{% with date=date|date:"l j F" time=date|time %}
{% if booking.user_display_label %}
{% blocktrans trimmed with meeting=booking.user_display_label %}
Your meeting "{{ meeting }}" is scheduled on {{ date }} at {{ time }}.
{% endblocktrans %}
{% else %}
{% blocktrans %}You have a meeting scheduled on {{ date }} at {{ time }}.{% endblocktrans %}
{% endif %}
{% endwith %}
</p>
<p>
{% with date=date|date:"l j F" time=date|time %}
{% if booking.user_display_label %}
{% blocktrans trimmed with meeting=booking.user_display_label %}
Your meeting "{{ meeting }}" is scheduled on {{ date }} at {{ time }}.
{% endblocktrans %}
{% else %}
{% blocktrans %}You have a meeting scheduled on {{ date }} at {{ time }}.{% endblocktrans %}
{% endif %}
{% endwith %}
</p>
{% if email_extra_info %}
<p>{{ email_extra_info|force_escape|linebreaks }}</p>
{% endif %}
{% if email_extra_info %}
<p>{{ email_extra_info|force_escape|linebreaks }}</p>
{% endif %}
{% if booking.form_url %}
{% with _("Edit or cancel meeting") as button_label %}
{% include "emails/button-link.html" with url=booking.get_form_url label=button_label %}
{% endwith %}
{% endif %}
{% if booking.form_url %}
{% with _("Edit or cancel meeting") as button_label %}
{% include "emails/button-link.html" with url=booking.get_form_url label=button_label %}
{% endwith %}
{% endif %}
{% endblock %}

View File

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<head>
<meta charset="utf-8">
</head>
<body>
</head>
<body>
<div style="max-width: 60ex;">
<div class="content">
{% block content %}
@ -11,5 +11,5 @@
{% endblock %}
</div>
</div>
</body>
</body>
</html>

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-agendas-import' %}">{% trans 'Export' %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-agendas-import' %}">{% trans 'Export' %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Export" %}</h2>
<h2>{% trans "Export" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Export" %}</button>
<a class="cancel" href="{% url 'chrono-manager-homepage' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-agendas-import' %}">{% trans 'Import' %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-agendas-import' %}">{% trans 'Import' %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Import" %}</h2>
<h2>{% trans "Import" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Import" %}</button>
<a class="cancel" href="{% url 'chrono-manager-homepage' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -1,8 +1,8 @@
{% load i18n %}
<div class="booking-colors">
<strong>{% trans "Booking colors:" %}</strong>
{% for color in colors %}
<span class="booking-color-label booking-bg-color-{{ color.index }}">{{ color }}</span>
{% endfor %}
<strong>{% trans "Booking colors:" %}</strong>
{% for color in colors %}
<span class="booking-color-label booking-bg-color-{{ color.index }}">{{ color }}</span>
{% endfor %}
</div>

View File

@ -2,17 +2,17 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "New Agenda" %}</h2>
<h2>{% trans "New Agenda" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'chrono-manager-homepage' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -4,12 +4,12 @@
{% block bodyargs %}class="dayview"{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a>{{ day|date:"SHORT_DATE_FORMAT" }}</a>
{{ block.super }}
<a>{{ day|date:"SHORT_DATE_FORMAT" }}</a>
{% endblock %}
{% block appbar %}
<h2>
<h2>
<a href="{{ view.get_previous_day_url }}"></a>
<span class="date-title">{{ view.date|date:"l j F Y" }}</span>
{% with selected_day=view.date|date:"j" selected_month=view.date|date:"n" selected_year=view.date|date:"Y" %}
@ -21,13 +21,13 @@
</div>
{% endwith %}
<a href="{{ view.get_next_day_url }}"></a>
</h2>
<span class="actions">
{% block actions %}
{% if user_can_manage %}
</h2>
<span class="actions">
{% block actions %}
{% if user_can_manage %}
<a href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Settings' %}</a>
{% endif %}
<a href="" onclick="window.print()">{% trans 'Print' %}</a>
{% endblock %}
</span>
{% endif %}
<a href="" onclick="window.print()">{% trans 'Print' %}</a>
{% endblock %}
</span>
{% endblock %}

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="">{% trans "Duplicate Agenda" %}</a>
{{ block.super }}
<a href="">{% trans "Duplicate Agenda" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Duplicate Agenda" %}</h2>
<h2>{% trans "Duplicate Agenda" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Duplicate" %}</button>
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -8,7 +8,7 @@
{% elif event.waiting_list_places %}
data-total="{{ event.waiting_list_places }}" data-booked="{{ event.booked_waiting_list_places }}"
{% endif %}
><a href="{% if view_mode == 'settings_view' %}{% url 'chrono-manager-event-edit' pk=agenda.pk event_pk=event.pk %}?next=settings{% elif event.pk %}{% url 'chrono-manager-event-view' pk=agenda.pk event_pk=event.pk %}{% else %}{% url 'chrono-manager-event-create-recurrence' pk=agenda.pk event_identifier=event.slug %}{% endif %}">
><a href="{% if view_mode == 'settings_view' %}{% url 'chrono-manager-event-edit' pk=agenda.pk event_pk=event.pk %}?next=settings{% elif event.pk %}{% url 'chrono-manager-event-view' pk=agenda.pk event_pk=event.pk %}{% else %}{% url 'chrono-manager-event-create-recurrence' pk=agenda.pk event_identifier=event.slug %}{% endif %}">
{% if event.cancellation_status %}
<span class="tag">{{ event.cancellation_status }}</span>
{% else %}
@ -50,7 +50,7 @@
({% trans "out of bookable period" %})
{% endif %}
</span>
</a>
</a>
{% if view_mode == 'settings_view' %}
<a rel="popup" class="link-action-icon duplicate" href="{% url 'chrono-manager-event-duplicate' pk=agenda.pk event_pk=event.pk %}">{% trans 'Duplicate' %}</a>
<a rel="popup" class="delete" href="{% url 'chrono-manager-event-delete' pk=agenda.pk event_pk=event.pk %}?next=settings">{% trans "remove" %}</a>

View File

@ -2,22 +2,22 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{{ agenda.get_settings_url }}">{% trans 'Settings' %}</a>
<a href="">{% firstof title view.title %}</a>
{{ block.super }}
<a href="{{ agenda.get_settings_url }}">{% trans 'Settings' %}</a>
<a href="">{% firstof title view.title %}</a>
{% endblock %}
{% block appbar %}
<h2>{% firstof title view.title %}</h2>
<h2>{% firstof title view.title %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{{ agenda.get_settings_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -4,12 +4,12 @@
{% block bodyargs %}class="monthview"{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a>{{ view.date|date:"F Y" }}</a>
{{ block.super }}
<a>{{ view.date|date:"F Y" }}</a>
{% endblock %}
{% block appbar %}
<h2>
<h2>
<a href="{{ view.get_previous_month_url }}"></a>
<span class="date-title">{{ view.date|date:"F Y" }}</span>
{% with selected_month=view.date|date:"n" selected_year=view.date|date:"Y" %}
@ -20,13 +20,13 @@
</div>
{% endwith %}
<a href="{{ view.get_next_month_url }}"></a>
</h2>
<span class="actions">
{% block actions %}
{% if user_can_manage %}
</h2>
<span class="actions">
{% block actions %}
{% if user_can_manage %}
<a href="{{ agenda.get_settings_url }}">{% trans 'Settings' %}</a>
{% endif %}
<a href="" onclick="window.print()">{% trans 'Print' %}</a>
{% endblock %}
</span>
{% endif %}
<a href="" onclick="window.print()">{% trans 'Print' %}</a>
{% endblock %}
</span>
{% endblock %}

View File

@ -2,17 +2,17 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-settings' agenda.pk %}">{% trans 'Settings' %}</a>
<a href="">{% trans "Notification settings" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-settings' agenda.pk %}">{% trans 'Settings' %}</a>
<a href="">{% trans "Notification settings" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Notification settings" %}</h2>
<h2>{% trans "Notification settings" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
@ -31,5 +31,5 @@
});
$('select').trigger('change');
</script>
</form>
</form>
{% endblock %}

View File

@ -4,26 +4,26 @@
{% block bodyargs %}class="openevents"{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-open-events-view' pk=agenda.pk %}">{% trans "Open events" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-open-events-view' pk=agenda.pk %}">{% trans "Open events" %}</a>
{% endblock %}
{% block actions %}
{% if agenda.subscriptions.exists %}
<a class="extra-actions-menu-opener"></a>
<ul class="extra-actions-menu">
{% if agenda.subscriptions.exists %}
<a class="extra-actions-menu-opener"></a>
<ul class="extra-actions-menu">
<li><a href="{% url 'chrono-manager-events-timesheet' pk=agenda.pk %}">{% trans 'Timesheet' %}</a></li>
</ul>
{% endif %}
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-month-redirect-view' pk=agenda.pk %}">{% trans 'Month view' %}</a>
</ul>
{% endif %}
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-month-redirect-view' pk=agenda.pk %}">{% trans 'Month view' %}</a>
{% endblock %}
{% block content %}
<div class="section">
<h3>{% trans "Open events" %}</h3>
<div>
{% if open_events %}
<div class="section">
<h3>{% trans "Open events" %}</h3>
<div>
{% if open_events %}
{% for event in open_events %}
{% ifchanged event.start_datetime|date:'n' event.start_datetime|date:'y' %}
{% if not forloop.first %}</ul>{% endif %}
@ -33,13 +33,13 @@
{% include 'chrono/manager_agenda_event_fragment.html' %}
{% if forloop.last %}</ul>{% endif %}
{% endfor %}
{% else %}
<div class="big-msg-info">
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This agenda doesn't have any open event configured.
{% endblocktrans %}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}

View File

@ -2,26 +2,26 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="">{% trans "Reminder message preview" %}</a>
{{ block.super }}
<a href="">{% trans "Reminder message preview" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Reminder message preview" %}</h2>
<h2>{% trans "Reminder message preview" %}</h2>
{% endblock %}
{% block content %}
<div id="message-preview">
{% if subject %}
<p>{% trans "Users will receive the following email:" %}</p>
<p class="email-subject"><strong>{% trans "Subject:" %}</strong> {{ subject }}</p>
{% else %}
<p>{% trans "Users will receive the following SMS:" %}</p>
{% endif %}
<p>{{ message }}</p>
<div id="message-preview">
{% if subject %}
<p>{% trans "Users will receive the following email:" %}</p>
<p class="email-subject"><strong>{% trans "Subject:" %}</strong> {{ subject }}</p>
{% else %}
<p>{% trans "Users will receive the following SMS:" %}</p>
{% endif %}
<p>{{ message }}</p>
<div class="buttons">
<a class="button" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Return to settings' %}</a>
</div>
</div>
<div class="buttons">
<a class="button" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Return to settings' %}</a>
</div>
</div>
{% endblock %}

View File

@ -2,22 +2,22 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="">{% trans "Add resource" %}</a>
{{ block.super }}
<a href="">{% trans "Add resource" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Add resource" %}</h2>
<h2>{% trans "Add resource" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.pk %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,19 +2,19 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
{% if desk %}
<a href="{% url 'chrono-manager-agenda-settings' desk.agenda_id %}">{% trans "Settings" %}</a>
{% else %}
<a href="{% url 'chrono-manager-agenda-settings' agenda.id|default:object.id %}">{% trans "Settings" %}</a>
{% endif %}
{{ block.super }}
{% if desk %}
<a href="{% url 'chrono-manager-agenda-settings' desk.agenda_id %}">{% trans "Settings" %}</a>
{% else %}
<a href="{% url 'chrono-manager-agenda-settings' agenda.id|default:object.id %}">{% trans "Settings" %}</a>
{% endif %}
{% endblock %}
{% block appbar %}
<h2>{% trans "Settings" %}
<h2>{% trans "Settings" %}
<span class="identifier">[{% trans "identifier:" %} {{object.slug}}]</span>
</h2>
<span class="actions">
</h2>
<span class="actions">
<a class="extra-actions-menu-opener"></a>
{% block agenda-extra-management-actions %}
{% endblock %}
@ -30,13 +30,13 @@
<li><a rel="popup" href="{% url 'chrono-manager-agenda-delete' pk=object.id %}">{% trans 'Delete' %}</a></li>
{% endif %}
</ul>
</span>
</span>
{% endblock %}
{% block content %}
<div class="section agenda-settings">
<div class="pk-tabs">
<div class="section agenda-settings">
<div class="pk-tabs">
<div class="pk-tabs--tab-list" role="tablist">
{% block agenda-settings-extra-tab-buttons %}{% endblock %}
{% if object.kind != 'virtual' %}
@ -106,6 +106,6 @@
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -2,22 +2,22 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="">{% trans "Add unavailability calendar" %}</a>
{{ block.super }}
<a href="">{% trans "Add unavailability calendar" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Add unavailability calendar" %}</h2>
<h2>{% trans "Add unavailability calendar" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.pk %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block page-title-extra-label %}
- {% firstof agenda.label object.label %}
- {% firstof agenda.label object.label %}
{% endblock %}
{% block appbar %}
<h2>{{ object.label }}</h2>
<h2>{{ object.label }}</h2>
<span class="actions">
{% block actions %}
{% if user_can_manage %}
@ -17,12 +17,12 @@
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
{% if agenda %}
<a href="{{ agenda.get_absolute_url }}">{{agenda.label}}</a>
{% elif object %}
<a href="{{ object.get_absolute_url }}">{{object.label}}</a>
{% endif %}
{{ block.super }}
{% if agenda %}
<a href="{{ agenda.get_absolute_url }}">{{agenda.label}}</a>
{% elif object %}
<a href="{{ object.get_absolute_url }}">{{object.label}}</a>
{% endif %}
{% endblock %}
{% block content %}

View File

@ -2,8 +2,8 @@
{% load static i18n %}
{% block extrascripts %}
{{ block.super }}
<script src="{% static 'js/chrono.manager.js' %}"></script>
{{ block.super }}
<script src="{% static 'js/chrono.manager.js' %}"></script>
{% endblock %}
{% block page-title %}

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Category" %}</h2>
{% else %}
<h2>{% trans "New Category" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit Category" %}</h2>
{% else %}
<h2>{% trans "New Category" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'chrono-manager-category-list' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-category-list' %}">{% trans "Categories" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-category-list' %}">{% trans "Categories" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans 'Categories' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-category-add' %}">{% trans 'New' %}</a>
</span>
<h2>{% trans 'Categories' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-category-add' %}">{% trans 'New' %}</a>
</span>
{% endblock %}
{% block content %}
{% if object_list %}
<div>
{% if object_list %}
<div>
<ul class="objects-list single-links">
{% for object in object_list %}
<li>
@ -25,13 +25,13 @@
</li>
{% endfor %}
</ul>
</div>
{% else %}
<div class="big-msg-info">
</div>
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any category yet. Click on the "New" button in the top
right of the page to add a first one.
{% endblocktrans %}
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Cancel booking" %}</h2>
<h2>{% trans "Cancel booking" %}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% if object.get_backoffice_url and not object.cancel_callback_url %}
{% if not user.is_staff %}
<p>{% trans "This booking has no callback url configured, cancellation must be handled from corresponding form." %}</p>
@ -35,5 +35,5 @@
<a class="cancel" href="{{ view.get_success_url }}">{% trans 'Abort' %}</a>
</div>
{% endif %}
</form>
</form>
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block appbar %}
<h2>{{ view.model.get_verbose_name }}</h2>
<h2>{{ view.model.get_verbose_name }}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
<p>
{% if cannot_delete %}
@ -19,5 +19,5 @@
<button class="delete-button" {% if cannot_delete %}disabled="disabled"{% endif %}>{% trans 'Delete' %}</button>
<a class="cancel" href="{{ object.get_absolute_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,12 +2,12 @@
{% load i18n %}
{% block appbar %}
<h2>{{ view.model.get_verbose_name }}</h2>
<h2>{{ view.model.get_verbose_name }}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% if cancellation_forbidden %}
<div class="warningnotice">
{% blocktrans trimmed %}
@ -39,5 +39,5 @@
<a class="cancel" href="{{ view.get_success_url }}">{% trans 'Abort' %}</a>
</div>
{% endif %}
</form>
</form>
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block appbar %}
<h2>{{ view.model.get_verbose_name }}</h2>
<h2>{{ view.model.get_verbose_name }}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
<input type="hidden" name="next" value="{% firstof request.POST.next request.GET.next %}">
<p>
@ -20,5 +20,5 @@
<button class="delete-button" {% if cannot_delete %}disabled="disabled"{% endif %}>{% trans 'Delete' %}</button>
<a class="cancel" href="{{ view.get_success_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block appbar %}
<h2>{{ object }}</h2>
<h2>{{ object }}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
<p>
{% blocktrans %}Are you sure you want to delete this exception?{% endblocktrans %}
@ -15,5 +15,5 @@
<button class="delete-button" {% if cannot_delete %}disabled="disabled"{% endif %}>{% trans 'Delete' %}</button>
<a class="cancel" href="{{ object.get_absolute_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block appbar %}
<h2>{{ object }}</h2>
<h2>{{ object }}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
<p>
{% blocktrans %}Are you sure you want to delete this exception source?{% endblocktrans %}
@ -15,5 +15,5 @@
<button class="delete-button">{% trans 'Delete' %}</button>
<a class="cancel" href="{{ view.get_success_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Exclude Agenda" %}</h2>
<h2>{% trans "Exclude Agenda" %}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
<p>
{% blocktrans %}Are you sure you want to exclude this agenda from the virtual agenda ?{% endblocktrans %}
@ -15,5 +15,5 @@
<button class="delete-button">{% trans 'Exclude' %}</button>
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' agenda.pk %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,38 +2,38 @@
{% load i18n %}
{% block extrascripts %}
{{ block.super }}
{{ form.media }}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
{% if object.id %}
<a href="">{{object.label}}</a>
{% else %}
<a href="">{% trans "New Desk" %}</a>
{% endif %}
{{ block.super }}
{% if object.id %}
<a href="">{{object.label}}</a>
{% else %}
<a href="">{% trans "New Desk" %}</a>
{% endif %}
{% endblock %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Desk" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-desk-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New Desk" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit Desk" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-desk-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New Desk" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,26 +2,26 @@
{% load i18n %}
{% block page-title-extra-label %}
{{ block.super }} - {% trans "Cancellation error report" %}
{{ block.super }} - {% trans "Cancellation error report" %}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-event-cancellation-report-list' pk=agenda.id %}">{% trans "Cancellation error reports" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-event-cancellation-report-list' pk=agenda.id %}">{% trans "Cancellation error reports" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Cancellation error report:" %} {{ report }}</h2>
{% block actions %}
<a rel="popup" href="{% url 'chrono-manager-event-cancel' pk=agenda.pk event_pk=report.event.pk %}?force_cancellation=True">{% trans "Force cancellation" %}</a>
{% endblock %}
<h2>{% trans "Cancellation error report:" %} {{ report }}</h2>
{% block actions %}
<a rel="popup" href="{% url 'chrono-manager-event-cancel' pk=agenda.pk event_pk=report.event.pk %}?force_cancellation=True">{% trans "Force cancellation" %}</a>
{% endblock %}
{% endblock %}
{% block content %}
<p>{% trans "Cancellation failed for the following bookings:" %}</p>
<ul>
{% for booking, error in errors.items %}
<li><a href="{{ booking.get_backoffice_url }}">{{ booking.events_display }}</a>: {{ error }}</li>
{% endfor %}
</ul>
<p>{% trans "Cancellation failed for the following bookings:" %}</p>
<ul>
{% for booking, error in errors.items %}
<li><a href="{{ booking.get_backoffice_url }}">{{ booking.events_display }}</a>: {{ error }}</li>
{% endfor %}
</ul>
{% endblock %}

View File

@ -1,10 +1,10 @@
{% load i18n %}
{% for report in cancellation_reports %}
<div class="warningnotice">
<p>
{% blocktrans with event=report.event %}Errors occured during cancellation of event "{{ event }}".{% endblocktrans %}
<a href="{% url 'chrono-manager-event-cancellation-report' pk=agenda.pk report_pk=report.pk %}">{% trans "Details" %}</a>
</p>
</div>
<div class="warningnotice">
<p>
{% blocktrans with event=report.event %}Errors occured during cancellation of event "{{ event }}".{% endblocktrans %}
<a href="{% url 'chrono-manager-event-cancellation-report' pk=agenda.pk report_pk=report.pk %}">{% trans "Details" %}</a>
</p>
</div>
{% endfor %}

View File

@ -2,27 +2,27 @@
{% load i18n %}
{% block page-title-extra-label %}
{{ block.super }} - {% trans "Cancellation error reports" %}
{{ block.super }} - {% trans "Cancellation error reports" %}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-event-cancellation-report-list' pk=agenda.pk %}">{% trans "Cancellation error reports" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-event-cancellation-report-list' pk=agenda.pk %}">{% trans "Cancellation error reports" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Cancellation error reports" %}</h2>
<h2>{% trans "Cancellation error reports" %}</h2>
{% endblock %}
{% block content %}
<ul>
{% for report in cancellation_reports %}
<li {% if not report.seen %}class="new-report"{% endif %}>
<ul>
{% for report in cancellation_reports %}
<li {% if not report.seen %}class="new-report"{% endif %}>
<a href="{% url 'chrono-manager-event-cancellation-report' pk=agenda.pk report_pk=report.pk %}">{{ report }}</a>
({% blocktrans count count=report.bookings.count %}{{ count }} failure{% plural %}{{ count }} failures{% endblocktrans %})
</li>
{% empty %}
<li>{% trans "No error report to show." %}</li>
{% endfor %}
</ul>
</li>
{% empty %}
<li>{% trans "No error report to show." %}</li>
{% endfor %}
</ul>
{% endblock %}

View File

@ -2,14 +2,14 @@
{% load static i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-event-check' pk=agenda.pk event_pk=object.pk %}">{% trans "Check" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-event-check' pk=agenda.pk event_pk=object.pk %}">{% trans "Check" %}</a>
{% endblock %}
{% block appbar_actions %}{% endblock %}
{% block content %}
<div class="section">
<div class="section">
<h3>
{% blocktrans with booked_places=object.booked_places places=object.places %}Bookings ({{ booked_places }}/{{ places }}){% endblocktrans %}
</h3>
@ -96,10 +96,10 @@
</tbody>
</table>
</div>
</div>
</div>
{% if object.waiting_list_places %}
<div class="section">
{% if object.waiting_list_places %}
<div class="section">
<h3>
{% blocktrans with booked_places=object.booked_waiting_list_places places=object.waiting_list_places %}Waiting List ({{ booked_places }}/{{ places }}){% endblocktrans %}
</h3>
@ -115,6 +115,6 @@
</tbody>
</table>
</div>
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -8,7 +8,7 @@
{% endif %}
</td>
{% if not event.checked or not agenda.disable_check_update %}
<td class="booking-actions" data-booking-id="{{ booking.id }}">
<td class="booking-actions" data-booking-id="{{ booking.id }}">
<form method="post" action="{% url 'chrono-manager-booking-presence' pk=agenda.pk booking_pk=booking.pk %}" class="with-ajax presence">
{% csrf_token %}
<button class="submit-button"
@ -39,5 +39,5 @@
});
</script>
</form>
</td>
</td>
{% endif %}

View File

@ -2,33 +2,33 @@
{% load static i18n %}
{% block extrascripts %}
{{ block.super }}
<script src="{% static 'js/chrono_events.manager.js' %}"></script>
{{ block.super }}
<script src="{% static 'js/chrono_events.manager.js' %}"></script>
{% endblock %}
{% block page-title-extra-label %}
- {% firstof agenda.label event.label %}
- {% firstof agenda.label event.label %}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-view' pk=agenda.id %}">{{agenda.label}}</a>
<a href="{% url 'chrono-manager-event-view' pk=agenda.id event_pk=event.id %}">{{event}}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-view' pk=agenda.id %}">{{agenda.label}}</a>
<a href="{% url 'chrono-manager-event-view' pk=agenda.id event_pk=event.id %}">{{event}}</a>
{% endblock %}
{% block appbar %}
<h2>
{% if event.label %}
{{ event.label }} — {{event.start_datetime|date:"DATETIME_FORMAT"}}
{% else %}
{{ event.start_datetime|date:"DATETIME_FORMAT"}}
{% endif %}
{% if event.cancellation_status %}<span class="tag">{{ event.cancellation_status }}</span>{% endif %}
{% if event.main_list_full %}<span class="tag">{% trans "Full" %}</span>{% endif %}
{% if event.checked %}<span class="tag">{% trans "Checked" %}</span>{% endif %}
</h2>
{% block appbar_actions %}
<span class="actions">
<h2>
{% if event.label %}
{{ event.label }} — {{event.start_datetime|date:"DATETIME_FORMAT"}}
{% else %}
{{ event.start_datetime|date:"DATETIME_FORMAT"}}
{% endif %}
{% if event.cancellation_status %}<span class="tag">{{ event.cancellation_status }}</span>{% endif %}
{% if event.main_list_full %}<span class="tag">{% trans "Full" %}</span>{% endif %}
{% if event.checked %}<span class="tag">{% trans "Checked" %}</span>{% endif %}
</h2>
{% block appbar_actions %}
<span class="actions">
{% if user_can_manage or event.agenda.booking_form_url %}
<a class="extra-actions-menu-opener"></a>
<ul class="extra-actions-menu">
@ -52,13 +52,13 @@
{% if event.is_day_past and not event.cancelled %}
<a href="{% url 'chrono-manager-event-check' pk=agenda.pk event_pk=event.pk %}">{% trans "Check" %}</a>
{% endif %}
</span>
{% endblock %}
</span>
{% endblock %}
{% endblock %}
{% block content %}
<div id="event_details">
<div id="event_details">
{% include "chrono/manager_event_detail_fragment.html" %}
</div>
</div>
{% endblock %}

View File

@ -1,13 +1,13 @@
{% load i18n %}
{% if object.description or object.pricing or object.url %}
<div class="section">
<div>
<div class="section">
<div>
{% if object.description %}{{ object.description|linebreaks }}{% endif %}
{% if object.pricing %}<p>{% trans "Pricing:" %} {{ object.pricing }}</p>{% endif %}
{% if object.url %}<p><a href="{{ object.url }}">{{ object.url|truncatechars:100 }}</a></p>{% endif %}
{% if object.publication_datetime %}<p>{% trans "Publication date:" %} {{ object.publication_datetime }}</p>{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
<div class="section">
@ -18,7 +18,7 @@
Bookings ({{ booked_places }}/{{ places }}): {{ remaining_places }} remaining places
{% endblocktrans %}
</h3>
<div>
<div>
{% if object.booked_places > event.places %}
<div class="errornotice"><p>{% trans "This event is overbooked." %}</p></div>
@ -38,11 +38,11 @@
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% if object.waiting_list_places %}
<div class="section">
<div class="section">
<h3>
{% blocktrans with places=object.waiting_list_places booked_places=object.booked_waiting_list_places count remaining_places=object.remaining_waiting_list_places %}
Waiting List ({{ booked_places }}/{{ places }}): {{ remaining_places }} remaining place
@ -50,12 +50,12 @@
Waiting List ({{ booked_places }}/{{ places }}): {{ remaining_places }} remaining places
{% endblocktrans %}
</h3>
<div>
<div>
<ul class="objects-list single-links">
{% for booking in waiting %}
<li><a {% if booking.get_backoffice_url %}href="{{ booking.get_backoffice_url }}"{% endif %}>{{ booking.get_user_block }}, {{ booking.creation_datetime|date:"DATETIME_FORMAT" }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
{% endif %}

View File

@ -2,22 +2,22 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{{ agenda.get_settings_url }}">{% trans 'Settings' %}</a>
<a href="">{% trans "Duplicate Event" %}</a>
{{ block.super }}
<a href="{{ agenda.get_settings_url }}">{% trans 'Settings' %}</a>
<a href="">{% trans "Duplicate Event" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Duplicate Event" %}</h2>
<h2>{% trans "Duplicate Event" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Duplicate" %}</button>
<a class="cancel" href="{% url 'chrono-manager-event-edit' pk=agenda.id event_pk=object.pk %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,33 +2,33 @@
{% load i18n gadjo %}
{% block extrascripts %}
{{ block.super }}
{{ form.media }}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
{% if object.id %}
<a href="{% url 'chrono-manager-agenda-view' pk=object.agenda.id %}">{{object.agenda.label}}</a>
{% endif %}
{{ block.super }}
{% if object.id %}
<a href="{% url 'chrono-manager-agenda-view' pk=object.agenda.id %}">{{object.agenda.label}}</a>
{% endif %}
{% endblock %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Event" %}</h2>
<span class="actions">
{% if not object.primary_event %}
<a rel="popup" href="{% url 'chrono-manager-event-delete' pk=object.agenda.id event_pk=object.id %}?next={{view.request.GET.next}}">{% trans 'Delete' %}</a>
{% endif %}
</span>
{% else %}
<h2>{% trans "New Event" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit Event" %}</h2>
<span class="actions">
{% if not object.primary_event %}
<a rel="popup" href="{% url 'chrono-manager-event-delete' pk=object.agenda.id event_pk=object.id %}?next={{view.request.GET.next}}">{% trans 'Delete' %}</a>
{% endif %}
</span>
{% else %}
<h2>{% trans "New Event" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
<input type="hidden" name="next" value="{% firstof request.POST.next request.GET.next %}">
{{ form|with_template }}
@ -51,5 +51,5 @@
}).change();
});
</script>
</form>
</form>
{% endblock %}

View File

@ -2,8 +2,8 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-event-timesheet' pk=agenda.pk event_pk=event.pk %}">{% trans "Timesheet" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-event-timesheet' pk=agenda.pk event_pk=event.pk %}">{% trans "Timesheet" %}</a>
{% endblock %}
{% block appbar_actions %}{% endblock %}

View File

@ -2,35 +2,35 @@
{% load i18n %}
{% block actions %}
{% if agenda.subscriptions.exists %}
<a class="extra-actions-menu-opener"></a>
<ul class="extra-actions-menu">
{% if agenda.subscriptions.exists %}
<a class="extra-actions-menu-opener"></a>
<ul class="extra-actions-menu">
<li><a href="{% url 'chrono-manager-events-timesheet' pk=agenda.pk %}">{% trans 'Timesheet' %}</a></li>
</ul>
{% endif %}
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-open-events-view' pk=agenda.pk %}">{% trans 'Open events' %}</a>
<a href="{% url 'chrono-manager-agenda-month-view' pk=agenda.pk year=view.date|date:"Y" month=view.date|date:"n" %}">{% trans 'Month view' %}</a>
</ul>
{% endif %}
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-open-events-view' pk=agenda.pk %}">{% trans 'Open events' %}</a>
<a href="{% url 'chrono-manager-agenda-month-view' pk=agenda.pk year=view.date|date:"Y" month=view.date|date:"n" %}">{% trans 'Month view' %}</a>
{% endblock %}
{% block content %}
<div class="section">
<h3>{% trans "Events" %}</h3>
<div>
{% if object_list %}
<div class="section">
<h3>{% trans "Events" %}</h3>
<div>
{% if object_list %}
<ul class="objects-list single-links">
{% for event in object_list %}
{% include 'chrono/manager_agenda_event_fragment.html' with view_mode='day_view' %}
{% endfor %}
</ul>
{% include "gadjo/pagination.html" %}
{% else %}
<div class="big-msg-info">
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This day doesn't have any event configured.
{% endblocktrans %}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}

View File

@ -2,24 +2,24 @@
{% load i18n %}
{% block actions %}
<a class="extra-actions-menu-opener"></a>
<ul class="extra-actions-menu">
<a class="extra-actions-menu-opener"></a>
<ul class="extra-actions-menu">
<li><a href="{% url 'chrono-manager-event-cancellation-report-list' pk=agenda.pk %}">{% trans 'Cancellation error reports' %}</a></li>
{% if agenda.subscriptions.exists %}
<li><a href="{% url 'chrono-manager-events-timesheet' pk=agenda.pk %}">{% trans 'Timesheet' %}</a></li>
{% endif %}
</ul>
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-open-events-view' pk=agenda.pk %}">{% trans 'Open events' %}</a>
<a href="{% url 'chrono-manager-agenda-day-view' pk=agenda.pk year=view.date|date:"Y" month=view.date|date:"m" day=view.date|date:"d" %}">{% trans 'Day view' %}</a>
</ul>
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-open-events-view' pk=agenda.pk %}">{% trans 'Open events' %}</a>
<a href="{% url 'chrono-manager-agenda-day-view' pk=agenda.pk year=view.date|date:"Y" month=view.date|date:"m" day=view.date|date:"d" %}">{% trans 'Day view' %}</a>
{% endblock %}
{% block content %}
<div class="section">
<h3>{% trans "Events" %}</h3>
{% include 'chrono/manager_event_cancellation_report_notice.html' %}
<div>
{% if object_list %}
<div class="section">
<h3>{% trans "Events" %}</h3>
{% include 'chrono/manager_event_cancellation_report_notice.html' %}
<div>
{% if object_list %}
<ul class="objects-list single-links">
{% for object in object_list %}
{% if object.is_exception %}
@ -30,14 +30,14 @@
{% endfor %}
</ul>
{% include "gadjo/pagination.html" %}
{% else %}
<div class="big-msg-info">
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This month doesn't have any event configured.
{% endblocktrans %}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}

View File

@ -2,8 +2,8 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-events-timesheet' pk=agenda.pk %}">{% trans "Timesheet" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-events-timesheet' pk=agenda.pk %}">{% trans "Timesheet" %}</a>
{% endblock %}
{% block appbar_actions %}{% endblock %}

View File

@ -1,18 +1,18 @@
{% load i18n %}
{% if event %}
<h4>{% blocktrans with event_date=event.start_datetime %}Timesheet - {{ event }} - {{ event_date }}{% endblocktrans %}</h4>
<h4>{% blocktrans with event_date=event.start_datetime %}Timesheet - {{ event }} - {{ event_date }}{% endblocktrans %}</h4>
{% else %}
<h4>{% blocktrans with start=form.cleaned_data.date_start end=form.cleaned_data.date_end %}Timesheet from {{ start }} to {{ end }}{% endblocktrans %}</h4>
<h4>{% blocktrans with start=form.cleaned_data.date_start end=form.cleaned_data.date_end %}Timesheet from {{ start }} to {{ end }}{% endblocktrans %}</h4>
{% endif %}
{% with slots=form.get_slots %}
{% with events_num=slots.events|length %}
{% for dates in slots.dates %}
{% for grouper in slots.users %}
{% if form.cleaned_data.group_by %}<h5>{{ form.cleaned_data.group_by }}: {{ grouper.grouper }}</h5>{% endif %}
<table class="main timesheet">
{% with events_num=slots.events|length %}
{% for dates in slots.dates %}
{% for grouper in slots.users %}
{% if form.cleaned_data.group_by %}<h5>{{ form.cleaned_data.group_by }}: {{ grouper.grouper }}</h5>{% endif %}
<table class="main timesheet">
<thead>
<tr>
<th>{% trans "First name" %}</th>
@ -60,10 +60,10 @@
{% endfor %}{% endfor %}
{% endif %}
</tbody>
</table>
{% if form.cleaned_data.with_page_break %}{% if not forloop.last or not forloop.parentloop.last %}<div class="page_break"></div>{% endif %}{% endif %}
{% endfor %}
{% if not form.cleaned_data.with_page_break and not forloop.last %}<div class="page_break"></div>{% endif %}
{% endfor %}
{% endwith %}
</table>
{% if form.cleaned_data.with_page_break %}{% if not forloop.last or not forloop.parentloop.last %}<div class="page_break"></div>{% endif %}{% endif %}
{% endfor %}
{% if not form.cleaned_data.with_page_break and not forloop.last %}<div class="page_break"></div>{% endif %}
{% endfor %}
{% endwith %}
{% endwith %}

View File

@ -1,6 +1,6 @@
{% load static i18n %}
<html>
<head>
<head>
<base href="{{ base_uri }}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{% blocktrans with start=form.cleaned_data.date_start end=form.cleaned_data.date_end %}Timesheet from {{ start }} to {{ end }}{% endblocktrans %}</title>
@ -11,12 +11,12 @@
size: {{ form.cleaned_data.orientation|default:"portrait" }};
}
</style>
</head>
<body>
</head>
<body>
<div id="main">
{% if request.GET and form.is_valid %}
{% include 'chrono/manager_events_timesheet_fragment.html' %}
{% endif %}
</div>
</body>
</body>
</html>

View File

@ -2,25 +2,25 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
{% if object.pk %}
<a href="{% url 'chrono-manager-events-type-edit' pk=object.pk %}">{{ object.label }}</a>
{% else %}
<a href="{% url 'chrono-manager-events-type-add' %}">{% trans "New events type" %}</a>
{% endif %}
{{ block.super }}
{% if object.pk %}
<a href="{% url 'chrono-manager-events-type-edit' pk=object.pk %}">{{ object.label }}</a>
{% else %}
<a href="{% url 'chrono-manager-events-type-add' %}">{% trans "New events type" %}</a>
{% endif %}
{% endblock %}
{% block appbar %}
{% if object.pk %}
<h2>{% trans "Edit events type" %}</h2>
{% else %}
<h2>{% trans "New events type" %}</h2>
{% endif %}
{% if object.pk %}
<h2>{% trans "Edit events type" %}</h2>
{% else %}
<h2>{% trans "New events type" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
{% if object.pk %}
@ -53,5 +53,5 @@
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'chrono-manager-events-type-list' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,23 +2,23 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-events-type-list' %}">{% trans "Events types" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-events-type-list' %}">{% trans "Events types" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans 'Events types' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-events-type-add' %}">{% trans 'New' %}</a>
</span>
<h2>{% trans 'Events types' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-events-type-add' %}">{% trans 'New' %}</a>
</span>
{% endblock %}
{% block content %}
<div class="pk-information">
<p>{% trans "Define here events types to set on events agendas." %}</p>
</div>
{% if object_list %}
<div>
<div class="pk-information">
<p>{% trans "Define here events types to set on events agendas." %}</p>
</div>
{% if object_list %}
<div>
<ul class="objects-list single-links">
{% for object in object_list %}
<li>
@ -27,13 +27,13 @@
</li>
{% endfor %}
</ul>
</div>
{% else %}
<div class="big-msg-info">
</div>
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any events type yet. Click on the "New" button in the top
right of the page to add a first one.
{% endblocktrans %}
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -2,9 +2,9 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Agendas' %}</h2>
<span class="actions">
{% if user.is_staff or has_access_to_unavailability_calendars %}
<h2>{% trans 'Agendas' %}</h2>
<span class="actions">
{% if user.is_staff or has_access_to_unavailability_calendars %}
<a class="extra-actions-menu-opener"></a>
<ul class="extra-actions-menu">
{% if user.is_staff %}
@ -22,35 +22,35 @@
<li><a href="{% url 'chrono-manager-resource-list' %}">{% trans 'Resources' %}</a></li>
{% endif %}
</ul>
{% endif %}
{% if user.is_staff %}
<a href="{% url 'chrono-manager-category-list' %}">{% trans 'Categories' %}</a>
<a rel="popup" href="{% url 'chrono-manager-agenda-add' %}">{% trans 'New' %}</a>
{% endif %}
</span>
{% endif %}
{% if user.is_staff %}
<a href="{% url 'chrono-manager-category-list' %}">{% trans 'Categories' %}</a>
<a rel="popup" href="{% url 'chrono-manager-agenda-add' %}">{% trans 'New' %}</a>
{% endif %}
</span>
{% endblock %}
{% block content %}
{% if object_list %}
{% regroup object_list by category as agenda_groups %}
{% for group in agenda_groups %}
<div class="section">
{% if object_list %}
{% regroup object_list by category as agenda_groups %}
{% for group in agenda_groups %}
<div class="section">
{% 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_kind_display }}</span> {{ object.label }}{% if user.is_staff %} <span class="identifier">[{% trans "identifier:" %} {{ object.slug }}]{% endif %}</span></a></li>
{% endfor %}
</ul>
</div>
{% endfor %}
{% else %}
<div class="big-msg-info">
</div>
{% endfor %}
{% else %}
<div class="big-msg-info">
{% blocktrans %}
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 %}
</div>
{% endif %}
{% endblock %}

View File

@ -2,22 +2,22 @@
{% load i18n %}
{% block extrascripts %}
{{ block.super }}
{{ form.media }}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-view' pk=agenda.id %}">{{agenda.label}}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-view' pk=agenda.id %}">{{agenda.label}}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Import Events" %}</h2>
<h2>{% trans "Import Events" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<p>
@ -27,5 +27,5 @@
<button>{% trans "Import" %}</button>
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,22 +2,22 @@
{% load i18n %}
{% block extrascripts %}
{{ block.super }}
{{ form.media }}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="">{% trans "Manage exception sources" %}</a>
{{ block.super }}
<a href="">{% trans "Manage exception sources" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Manage exception sources" %}</h2>
<h2>{% trans "Manage exception sources" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% if exception_sources or unavailability_calendars %}
<ul class="objects-list single-links">
{% for object in exception_sources %}
@ -53,5 +53,5 @@
<button>{% trans "Import" %}</button>
<a class="cancel" href="{{ view.get_success_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,36 +2,36 @@
{% load i18n %}
{% block extrascripts %}
{{ block.super }}
{{ form.media }}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
{% if object.id %}
<a href="{% url 'chrono-manager-agenda-view' pk=object.agenda.id %}">{{object.agenda.label}}</a>
{% endif %}
{{ block.super }}
{% if object.id %}
<a href="{% url 'chrono-manager-agenda-view' pk=object.agenda.id %}">{{object.agenda.label}}</a>
{% endif %}
{% endblock %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Meeting Type" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-meeting-type-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New Meeting Type" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit Meeting Type" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-meeting-type-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New Meeting Type" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,16 +2,16 @@
{% load i18n %}
{% block actions %}
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-month-view' pk=agenda.id year=view.date|date:"Y" month=view.date|date:"n" %}">{% trans 'Month view' %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-month-view' pk=agenda.id year=view.date|date:"Y" month=view.date|date:"n" %}">{% trans 'Month view' %}</a>
{% endblock %}
{% block content %}
{% for period, desk_infos in view.get_timetable_infos %}
{% for period, desk_infos in view.get_timetable_infos %}
{% if forloop.first %}
<table class="agenda-table day-view hourspan-{{ hour_span }} desks-{{ desk_infos|length }} ">
{% if forloop.first %}
<table class="agenda-table day-view hourspan-{{ hour_span }} desks-{{ desk_infos|length }} ">
<thead>
<tr>
<td></td>
@ -21,7 +21,7 @@
</tr>
</thead>
<tbody>
{% endif %}
{% endif %}
<tr class="{% cycle 'odd' 'even' %}">
<th class="hour">{{ period|date:"TIME_FORMAT" }}</th>
@ -55,19 +55,19 @@
{% endfor %}
</tr>
{% if forloop.last %}
{% if forloop.last %}
</tbody>
</table>
{% endif %}
</table>
{% endif %}
{% empty %}
<div class="closed-for-the-day">
{% empty %}
<div class="closed-for-the-day">
<p>{% trans "No opening hours this day." %}</p>
</div>
{% endfor %}
</div>
{% endfor %}
{% if booking_colors %}
{% include "chrono/booking_color_legend.html" with colors=booking_colors %}
{% endif %}
{% if booking_colors %}
{% include "chrono/booking_color_legend.html" with colors=booking_colors %}
{% endif %}
{% endblock %}

View File

@ -2,17 +2,17 @@
{% load i18n %}
{% block actions %}
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-day-view' pk=agenda.id year=view.date|date:"Y" month=view.date|date:"m" day=view.date|date:"d" %}">{% trans 'Day view' %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-day-view' pk=agenda.id year=view.date|date:"Y" month=view.date|date:"m" day=view.date|date:"d" %}">{% trans 'Day view' %}</a>
{% endblock %}
{% block content %}
{% for week_days in view.get_timetable_infos %}
{% if forloop.first %}
<table class="agenda-table month-view {% if single_desk %}single-desk{% endif %}">
{% for week_days in view.get_timetable_infos %}
{% if forloop.first %}
<table class="agenda-table month-view {% if single_desk %}single-desk{% endif %}">
<tbody>
{% endif %}
{% endif %}
<tr>
<th></th>
{% for day in week_days.days %}
@ -48,19 +48,19 @@
</tr>
{% endfor %}
{% resetcycle %}
{% if forloop.last %}
{% if forloop.last %}
</tbody>
</table>
{% endif %}
</table>
{% endif %}
{% empty %}
<div class="closed-for-the-day">
{% empty %}
<div class="closed-for-the-day">
<p>{% trans "No opening hours this month." %}</p>
</div>
{% endfor %}
</div>
{% endfor %}
{% if booking_colors %}
{% include "chrono/booking_color_legend.html" with colors=booking_colors %}
{% endif %}
{% if booking_colors %}
{% include "chrono/booking_color_legend.html" with colors=booking_colors %}
{% endif %}
{% endblock %}

View File

@ -2,12 +2,12 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Agendas' %}</h2>
<h2>{% trans 'Agendas' %}</h2>
{% endblock %}
{% block content %}
<div class="big-msg-sorry">
<div class="big-msg-sorry">
<p>{% trans 'This screen displays agendas you can access.' %}</p>
<p>{% trans 'Unfortunately, there is still no agenda configured this way.' %}</p>
</div>
</div>
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Replace exceptions" %}</h2>
<h2>{% trans "Replace exceptions" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
<p class="notice">{% trans "To replace existing exceptions, please upload a new file." %}</p>
{% csrf_token %}
{{ form.as_p }}
@ -16,5 +16,5 @@
<button>{% trans "Replace" %}</button>
<a class="cancel" href="{{ view.get_success_url }">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,12 +2,12 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a>{{ day|date:"SHORT_DATE_FORMAT" }}</a>
{{ block.super }}
<a>{{ day|date:"SHORT_DATE_FORMAT" }}</a>
{% endblock %}
{% block appbar-title %}
<h2>
<h2>
<a href="{{ view.get_previous_day_url }}"></a>
<span class="date-title">{{ view.date|date:"l j F Y" }}</span>
{% with selected_day=view.date|date:"j" selected_month=view.date|date:"n" selected_year=view.date|date:"Y" %}
@ -19,15 +19,15 @@
</div>
{% endwith %}
<a href="{{ view.get_next_day_url }}"></a>
</h2>
</h2>
{% endblock %}
{% block appbar-extras %}
<a href="{% url 'chrono-manager-resource-month-view' pk=resource.pk year=view.date|date:"Y" month=view.date|date:"n" %}">{% trans 'Month view' %}</a>
<a href="{% url 'chrono-manager-resource-month-view' pk=resource.pk year=view.date|date:"Y" month=view.date|date:"n" %}">{% trans 'Month view' %}</a>
{% endblock %}
{% block content %}
{% for period, resource_info in view.get_timetable_infos %}
{% for period, resource_info in view.get_timetable_infos %}
{% if forloop.first %}
<table class="agenda-table day-view hourspan-{{ hour_span }}">
@ -49,10 +49,10 @@
</tbody>
</table>
{% endif %}
{% empty %}
<div class="closed-for-the-day">
{% empty %}
<div class="closed-for-the-day">
<p>{% trans "No bookings this day." %}</p>
</div>
{% endfor %}
</div>
{% endfor %}
{% endblock %}

View File

@ -2,40 +2,40 @@
{% load i18n %}
{% block page-title-extra-label %}
- {{ resource.label }}
- {{ resource.label }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-resource-view' pk=resource.pk %}">{{ resource.label }}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-resource-view' pk=resource.pk %}">{{ resource.label }}</a>
{% endblock %}
{% block appbar %}
{% block appbar-title %}
<h2>{{ resource }}</h2>
{% endblock %}
<span class="actions">
{% block appbar-extras %}
{% if request.user.is_staff %}
<a rel="popup" href="{% url 'chrono-manager-resource-edit' pk=resource.pk %}">{% trans 'Edit' %}</a>
<a rel="popup" href="{% url 'chrono-manager-resource-delete' pk=resource.pk %}">{% trans 'Delete' %}</a>
{% endif %}
{% now "Y" as today_year %}
{% now "n" as today_month %}
{% now "j" as today_day %}
<a href="{% url 'chrono-manager-resource-month-view' pk=resource.pk year=today_year month=today_month %}">{% trans 'Month view' %}</a>
<a href="{% url 'chrono-manager-resource-day-view' pk=resource.pk year=today_year month=today_month day=today_day %}">{% trans 'Day view' %}</a>
{% endblock %}
</span>
{% block appbar-title %}
<h2>{{ resource }}</h2>
{% endblock %}
<span class="actions">
{% block appbar-extras %}
{% if request.user.is_staff %}
<a rel="popup" href="{% url 'chrono-manager-resource-edit' pk=resource.pk %}">{% trans 'Edit' %}</a>
<a rel="popup" href="{% url 'chrono-manager-resource-delete' pk=resource.pk %}">{% trans 'Delete' %}</a>
{% endif %}
{% now "Y" as today_year %}
{% now "n" as today_month %}
{% now "j" as today_day %}
<a href="{% url 'chrono-manager-resource-month-view' pk=resource.pk year=today_year month=today_month %}">{% trans 'Month view' %}</a>
<a href="{% url 'chrono-manager-resource-day-view' pk=resource.pk year=today_year month=today_month day=today_day %}">{% trans 'Day view' %}</a>
{% endblock %}
</span>
{% endblock %}
{% block content %}
<div class="section">
<h3>{% trans 'Used in meetings agendas' %}</h3>
<div>
{% with resource.agenda_set.all as agendas %}
{% if agendas %}
<div class="section">
<h3>{% trans 'Used in meetings agendas' %}</h3>
<div>
{% with resource.agenda_set.all as agendas %}
{% if agendas %}
<ul class="objects-list single-links">
{% for agenda in agendas %}
<li>
@ -45,15 +45,15 @@
</li>
{% endfor %}
</ul>
{% else %}
<div class="big-msg-info">
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This resource is not used yet.
{% endblocktrans %}
</div>
{% endif %}
{% endwith %}
</div>
</div>
</div>
{% endif %}
{% endwith %}
</div>
</div>
{% endblock %}

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Resource" %}</h2>
{% else %}
<h2>{% trans "New Resource" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit Resource" %}</h2>
{% else %}
<h2>{% trans "New Resource" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'chrono-manager-resource-list' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-resource-list' %}">{% trans "Resources" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-resource-list' %}">{% trans "Resources" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans 'Resources' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-resource-add' %}">{% trans 'New' %}</a>
</span>
<h2>{% trans 'Resources' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-resource-add' %}">{% trans 'New' %}</a>
</span>
{% endblock %}
{% block content %}
{% if object_list %}
<div>
{% if object_list %}
<div>
<ul class="objects-list single-links">
{% for object in object_list %}
<li>
@ -24,13 +24,13 @@
</li>
{% endfor %}
</ul>
</div>
{% else %}
<div class="big-msg-info">
</div>
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any resource yet. Click on the "New" button in the top
right of the page to add a first one.
{% endblocktrans %}
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -4,12 +4,12 @@
{% block bodyargs %}class="monthview"{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a>{{ view.date|date:"F Y" }}</a>
{{ block.super }}
<a>{{ view.date|date:"F Y" }}</a>
{% endblock %}
{% block appbar-title %}
<h2>
<h2>
<a href="{{ view.get_previous_month_url }}"></a>
<span class="date-title">{{ view.date|date:"F Y" }}</span>
{% with selected_month=view.date|date:"n" selected_year=view.date|date:"Y" %}
@ -20,15 +20,15 @@
</div>
{% endwith %}
<a href="{{ view.get_next_month_url }}"></a>
</h2>
</h2>
{% endblock %}
{% block appbar-extras %}
<a href="{% url 'chrono-manager-resource-day-view' pk=resource.pk year=view.date|date:"Y" month=view.date|date:"n" day=1 %}">{% trans 'Day view' %}</a>
<a href="{% url 'chrono-manager-resource-day-view' pk=resource.pk year=view.date|date:"Y" month=view.date|date:"n" day=1 %}">{% trans 'Day view' %}</a>
{% endblock %}
{% block content %}
{% for week_days in view.get_timetable_infos %}
{% for week_days in view.get_timetable_infos %}
{% if forloop.first %}
<table class="agenda-table month-view single-desk">
@ -61,10 +61,10 @@
</tbody>
</table>
{% endif %}
{% empty %}
<div class="closed-for-the-day">
{% empty %}
<div class="closed-for-the-day">
<p>{% trans "No bookings this month." %}</p>
</div>
{% endfor %}
</div>
{% endfor %}
{% endblock %}

View File

@ -2,22 +2,22 @@
{% load i18n gadjo %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-settings' agenda.pk %}">{% trans 'Settings' %}</a>
<a href="{% url 'chrono-manager-agenda-edit' agenda.pk %}">{{ title }}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-agenda-settings' agenda.pk %}">{% trans 'Settings' %}</a>
<a href="{% url 'chrono-manager-agenda-edit' agenda.pk %}">{{ title }}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Test reminder sending" %}</h2>
<h2>{% trans "Test reminder sending" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form|with_template }}
<div class="buttons">
<button class="submit-button">{% trans "Send" %}</button>
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,7 +2,7 @@
{% load i18n %}
{% block content %}
{% if agenda.is_complete %}
{% if agenda.is_complete %}
{% for week, slots in slots_by_week.items %}
{% if forloop.first %}
<table class="agenda-table month-view single-desk">
@ -27,9 +27,9 @@
</table>
{% endif %}
{% endfor %}
{% else %}
{% else %}
<div class="warningnotice">
<p>{% trans "Configuration is not completed yet." %}</p>
</div>
{% endif %}
{% endif %}
{% endblock %}

View File

@ -2,13 +2,13 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href=".">{% trans "Settings" %}</a>
{{ block.super }}
<a href=".">{% trans "Settings" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Settings" %}</h2>
<span class="actions">
<h2>{% trans "Settings" %}</h2>
<span class="actions">
{% if user.is_staff %}
<a class="extra-actions-menu-opener"></a>
{% endif %}
@ -22,19 +22,19 @@
<li><a rel="popup" href="{% url 'chrono-manager-shared-custody-agenda-delete' pk=object.id %}">{% trans 'Delete' %}</a></li>
</ul>
{% endif %}
</span>
</span>
{% endblock %}
{% block content %}
{% if not agenda.is_complete %}
<div class="warningnotice">
<p>{% trans "Custody rules are not complete." %}</p>
</div>
{% endif %}
{% if not agenda.is_complete %}
<div class="warningnotice">
<p>{% trans "Custody rules are not complete." %}</p>
</div>
{% endif %}
<div class="section agenda-settings">
<div class="pk-tabs">
<div class="section agenda-settings">
<div class="pk-tabs">
<div class="pk-tabs--tab-list" role="tablist">
<button aria-controls="panel-rules" aria-selected="true" id="tab-rules" role="tab" tabindex="0">{% trans "Custody rules" %}</button>
{% if has_holidays %}
@ -112,6 +112,6 @@
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -2,33 +2,33 @@
{% load i18n %}
{% block extrascripts %}
{{ block.super }}
{{ form.media }}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
{% if object.id %}
<a href="">{{object}}</a>
{% else %}
<a href="">{% trans "New time period exception" %}</a>
{% endif %}
{{ block.super }}
{% if object.id %}
<a href="">{{object}}</a>
{% else %}
<a href="">{% trans "New time period exception" %}</a>
{% endif %}
{% endblock %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit time period exception" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-time-period-exception-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New time period exception" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit time period exception" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-time-period-exception-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New time period exception" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.non_field_errors }}
{% for field in form.visible_fields %}
@ -66,5 +66,5 @@
}
});
</script>
</form>
</form>
{% endblock %}

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block extrascripts %}
{{ block.super }}
{{ form.media }}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href=".">{% trans "All exceptions" %}</a>
{{ block.super }}
<a href=".">{% trans "All exceptions" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Exceptions" %}</h2>
<h2>{% trans "Exceptions" %}</h2>
{% endblock %}
{% block content %}
<div class="timeperiod">
<div class="timeperiod">
<ul class="objects-list single-links">
{% for exception in object_list %}
<li>
@ -31,5 +31,5 @@
{% endif %}
{% include "gadjo/pagination.html" %}
</div>
</div>
{% endblock %}

View File

@ -2,33 +2,33 @@
{% load i18n gadjo %}
{% block extrascripts %}
{{ block.super }}
{{ form.media }}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
{% if object.id %}
<a href="">{{object}}</a>
{% else %}
<a href="">{% trans "New Time Period" %}</a>
{% endif %}
{{ block.super }}
{% if object.id %}
<a href="">{{object}}</a>
{% else %}
<a href="">{% trans "New Time Period" %}</a>
{% endif %}
{% endblock %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Time Period" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-time-period-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New Time Period" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit Time Period" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-time-period-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New Time Period" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form|with_template }}
<div class="buttons">
@ -47,5 +47,5 @@
}
}).change();
</script>
</form>
</form>
{% endblock %}

View File

@ -2,33 +2,33 @@
{% load i18n %}
{% block page-title-extra-label %}
- {{ unavailability_calendar.label }}
- {{ unavailability_calendar.label }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-unavailability-calendar-view' pk=unavailability_calendar.pk %}">{{ unavailability_calendar.label }}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-unavailability-calendar-view' pk=unavailability_calendar.pk %}">{{ unavailability_calendar.label }}</a>
{% endblock %}
{% block appbar %}
{% block appbar-title %}
<h2>{{ unavailability_calendar }}</h2>
{% endblock %}
{% if user_can_manage %}
<span class="actions">
{% block appbar-extras %}
<a href="{% url 'chrono-manager-unavailability-calendar-settings' pk=unavailability_calendar.pk %}">{% trans 'Settings' %}</a>
{% endblock %}
</span>
{% endif %}
{% block appbar-title %}
<h2>{{ unavailability_calendar }}</h2>
{% endblock %}
{% if user_can_manage %}
<span class="actions">
{% block appbar-extras %}
<a href="{% url 'chrono-manager-unavailability-calendar-settings' pk=unavailability_calendar.pk %}">{% trans 'Settings' %}</a>
{% endblock %}
</span>
{% endif %}
{% endblock %}
{% block content %}
<div class="section">
<h3>{% trans 'Used in meetings agendas' %}</h3>
<div>
{% if agendas %}
<div class="section">
<h3>{% trans 'Used in meetings agendas' %}</h3>
<div>
{% if agendas %}
<ul class="objects-list single-links">
{% for agenda in agendas %}
<li>
@ -38,14 +38,14 @@
</li>
{% endfor %}
</ul>
{% else %}
<div class="big-msg-info">
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This unavailability calendar is not used yet.
{% endblocktrans %}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}

View File

@ -2,32 +2,32 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
{% if object.pk %}
{{ block.super }}
{% if object.pk %}
<a href="{% url 'chrono-manager-unavailability-calendar-view' object.pk %}">{{ object }}</a>
<a href="{% url 'chrono-manager-unavailability-calendar-settings' object.pk %}">{% trans 'Settings' %}</a>
<a href="{% url 'chrono-manager-unavailability-calendar-edit' object.pk %}">{% trans 'Edit Unavailability Calendar' %}</a>
{% else %}
{% else %}
<a href="{% url 'chrono-manager-unavailability-calendar-add' %}">{% trans 'New Unavailability Calendar' %}</a>
{% endif %}
{% endif %}
{% endblock %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Unavailability Calendar" %}</h2>
{% else %}
<h2>{% trans "New Unavailability Calendar" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit Unavailability Calendar" %}</h2>
{% else %}
<h2>{% trans "New Unavailability Calendar" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'chrono-manager-unavailability-calendar-list' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,23 +2,23 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-unavailability-calendar-list' %}">{% trans "Unavailability Calendars" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-unavailability-calendar-list' %}">{% trans "Unavailability Calendars" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans 'Unavailability Calendars' %}</h2>
{% if user.is_staff %}
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-unavailability-calendar-add' %}">{% trans 'New' %}</a>
</span>
{% endif %}
<h2>{% trans 'Unavailability Calendars' %}</h2>
{% if user.is_staff %}
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-unavailability-calendar-add' %}">{% trans 'New' %}</a>
</span>
{% endif %}
{% endblock %}
{% block content %}
{% if object_list %}
<div>
{% if object_list %}
<div>
<ul class="objects-list single-links">
{% for object in object_list %}
<li>
@ -26,13 +26,13 @@
</li>
{% endfor %}
</ul>
</div>
{% else %}
<div class="big-msg-info">
</div>
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any unavailability calendar yet. Click on the "New" button in the top
right of the page to add a first one.
{% endblocktrans %}
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -2,14 +2,14 @@
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-unavailability-calendar-settings' unavailability_calendar.pk %}">{% trans "Settings" %}</a>
{{ block.super }}
<a href="{% url 'chrono-manager-unavailability-calendar-settings' unavailability_calendar.pk %}">{% trans "Settings" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Settings" %}
</h2>
<span class="actions">
<h2>{% trans "Settings" %}
</h2>
<span class="actions">
<a class="extra-actions-menu-opener"></a>
{% block agenda-extra-management-actions %}
<a rel="popup" href="{% url 'chrono-manager-unavailability-calendar-import-unavailabilities' pk=unavailability_calendar.id %}">{% trans 'Manage unavailabilities from ICS' %}</a>
@ -22,15 +22,15 @@
<li><a rel="popup" href="{% url 'chrono-manager-unavailability-calendar-delete' pk=unavailability_calendar.id %}">{% trans 'Delete' %}</a></li>
{% endif %}
</ul>
</span>
</span>
{% endblock %}
{% block content %}
<div class="section">
<h3>{% trans 'Unavailabilities' %}</h3>
<div>
{% block agenda-settings %}
{% if unavailability_calendar.timeperiodexception_set.count %}
<div class="section">
<h3>{% trans 'Unavailabilities' %}</h3>
<div>
{% block agenda-settings %}
{% if unavailability_calendar.timeperiodexception_set.count %}
<ul class="objects-list single-links">
{% for time_period_exception in unavailability_calendar.timeperiodexception_set.all %}
<li><a rel="popup" href="{% url 'chrono-manager-time-period-exception-edit' pk=time_period_exception.id %}">{{ time_period_exception }}</a>
@ -38,17 +38,17 @@
</li>
{% endfor %}
</ul>
{% else %}
<div class="big-msg-info">
{% else %}
<div class="big-msg-info">
{% blocktrans %}
There is no unavailabilities yet. Click on the "Add Unavailabilty" button in
the top right of the page to add a first one.
{% endblocktrans %}
</div>
{% endif %}
</div>
</div>
{% endblock %}
</div>
{% endif %}
</div>
</div>
{% endblock %}
{% endblock %}

View File

@ -2,27 +2,27 @@
{% load i18n %}
{% block extrascripts %}
{{ block.super }}
{{ form.media }}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="">{% trans "Include Agenda" %}</a>
{{ block.super }}
<a href="">{% trans "Include Agenda" %}</a>
{% endblock %}
{% block appbar %}
<h2>{% trans "Include Agenda" %}</h2>
<h2>{% trans "Include Agenda" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -1,9 +1,9 @@
<span class="datetime">
{% with widget=widget.subwidgets.0 %}
{% with widget=widget.subwidgets.0 %}
<input type="date" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
{% endwith %}
{% with widget=widget.subwidgets.1 %}
{% endwith %}
{% with widget=widget.subwidgets.1 %}
<!-- {{ widget.value|pprint }} -->
<input type="time" name="{{ widget.name }}" pattern="[0-9]{2}:[0-9]{2}" step="300" {% if widget.value != None %} value="{{ widget.value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
{% endwith %}
{% endwith %}
</span>

View File

@ -1,10 +1,10 @@
{% spaceless %}
<span id="{{ widget.attrs.id }}" class="weekdays-buttons-group{% if widget.attrs.class %} {{ widget.attrs.class }}{% endif %}" role="group">
<span id="{{ widget.attrs.id }}" class="weekdays-buttons-group{% if widget.attrs.class %} {{ widget.attrs.class }}{% endif %}" role="group">
{% for group, options, index in widget.optgroups %}
{% for option in options %}
{% include "django/forms/widgets/input.html" with widget=option %}
<label{% if option.attrs.id %} for="{{ option.attrs.id }}"{% endif %}>{{ option.label }}</label>
{% endfor %}
{% endfor %}
</span>
</span>
{% endspaceless %}

View File

@ -2,9 +2,9 @@
{% load i18n %}
{% block content %}
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Log in' %}" />
</form>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Log in' %}" />
</form>
{% endblock %}