diff --git a/chrono/agendas/templates/agendas/event_notification_body.html b/chrono/agendas/templates/agendas/event_notification_body.html index 1ef6a949..be60dcf4 100644 --- a/chrono/agendas/templates/agendas/event_notification_body.html +++ b/chrono/agendas/templates/agendas/event_notification_body.html @@ -2,15 +2,15 @@ {% load i18n %} {% block content %} -

{% trans "Hi," %}

+

{% trans "Hi," %}

-

-{% blocktrans %} -You have been notified because the status of event "{{ event }}" has changed. -{% endblocktrans %} -

+

+ {% blocktrans %} + You have been notified because the status of event "{{ event }}" has changed. + {% endblocktrans %} +

-{% 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 %} diff --git a/chrono/agendas/templates/agendas/events_reminder_body.html b/chrono/agendas/templates/agendas/events_reminder_body.html index 3ac1620a..16e53e72 100644 --- a/chrono/agendas/templates/agendas/events_reminder_body.html +++ b/chrono/agendas/templates/agendas/events_reminder_body.html @@ -2,35 +2,35 @@ {% load i18n %} {% block content %} -

{% trans "Hi," %}

+

{% trans "Hi," %}

-

-{% 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 %} -

+

+ {% 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 %} +

-{% if email_extra_info %} -

{{ email_extra_info|force_escape|linebreaks }}

-{% endif %} + {% if email_extra_info %} +

{{ email_extra_info|force_escape|linebreaks }}

+ {% endif %} -{% if booking.event.description %} -

{% trans "Additional information:" %}

-{{ booking.event.description|linebreaks }} -{% endif %} + {% if booking.event.description %} +

{% trans "Additional information:" %}

+ {{ booking.event.description|linebreaks }} + {% endif %} -{% if booking.event.pricing %} -

{% trans "Pricing:" %} {{ booking.event.pricing }}

-{% endif %} + {% if booking.event.pricing %} +

{% trans "Pricing:" %} {{ booking.event.pricing }}

+ {% 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 %} diff --git a/chrono/agendas/templates/agendas/meetings_reminder_body.html b/chrono/agendas/templates/agendas/meetings_reminder_body.html index ecedee40..d5b330a7 100644 --- a/chrono/agendas/templates/agendas/meetings_reminder_body.html +++ b/chrono/agendas/templates/agendas/meetings_reminder_body.html @@ -2,27 +2,27 @@ {% load i18n %} {% block content %} -

{% trans "Hi," %}

+

{% trans "Hi," %}

-

-{% 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 %} -

+

+ {% 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 %} +

-{% if email_extra_info %} -

{{ email_extra_info|force_escape|linebreaks }}

-{% endif %} + {% if email_extra_info %} +

{{ email_extra_info|force_escape|linebreaks }}

+ {% 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 %} diff --git a/chrono/agendas/templates/emails/body_base.html b/chrono/agendas/templates/emails/body_base.html index 9705c361..0705591b 100644 --- a/chrono/agendas/templates/emails/body_base.html +++ b/chrono/agendas/templates/emails/body_base.html @@ -1,15 +1,15 @@ - - - - -
-
- {% block content %} - {{ content }} - {% endblock %} + + + + +
+
+ {% block content %} + {{ content }} + {% endblock %} +
-
- + diff --git a/chrono/manager/templates/chrono/agendas_export.html b/chrono/manager/templates/chrono/agendas_export.html index ec8ea05c..3050a03e 100644 --- a/chrono/manager/templates/chrono/agendas_export.html +++ b/chrono/manager/templates/chrono/agendas_export.html @@ -2,21 +2,21 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans 'Export' %} + {{ block.super }} + {% trans 'Export' %} {% endblock %} {% block appbar %} -

{% trans "Export" %}

+

{% trans "Export" %}

{% endblock %} {% block content %} -
- {% csrf_token %} - {{ form.as_p }} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} + {{ form.as_p }} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/chrono/manager/templates/chrono/agendas_import.html b/chrono/manager/templates/chrono/agendas_import.html index d6c6f02d..c3724ab7 100644 --- a/chrono/manager/templates/chrono/agendas_import.html +++ b/chrono/manager/templates/chrono/agendas_import.html @@ -2,21 +2,21 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans 'Import' %} + {{ block.super }} + {% trans 'Import' %} {% endblock %} {% block appbar %} -

{% trans "Import" %}

+

{% trans "Import" %}

{% endblock %} {% block content %} -
- {% csrf_token %} - {{ form.as_p }} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} + {{ form.as_p }} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/chrono/manager/templates/chrono/booking_color_legend.html b/chrono/manager/templates/chrono/booking_color_legend.html index 5d188e38..8d9b9c09 100644 --- a/chrono/manager/templates/chrono/booking_color_legend.html +++ b/chrono/manager/templates/chrono/booking_color_legend.html @@ -1,8 +1,8 @@ {% load i18n %}
-{% trans "Booking colors:" %} -{% for color in colors %} -{{ color }} -{% endfor %} + {% trans "Booking colors:" %} + {% for color in colors %} + {{ color }} + {% endfor %}
diff --git a/chrono/manager/templates/chrono/manager_agenda_add_form.html b/chrono/manager/templates/chrono/manager_agenda_add_form.html index 7a409492..9aea9994 100644 --- a/chrono/manager/templates/chrono/manager_agenda_add_form.html +++ b/chrono/manager/templates/chrono/manager_agenda_add_form.html @@ -2,17 +2,17 @@ {% load i18n %} {% block appbar %} -

{% trans "New Agenda" %}

+

{% trans "New Agenda" %}

{% endblock %} {% block content %} -
- {% csrf_token %} - {{ form.as_p }} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} + {{ form.as_p }} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/chrono/manager/templates/chrono/manager_agenda_day_view.html b/chrono/manager/templates/chrono/manager_agenda_day_view.html index 4a2d67e4..4b1b1caf 100644 --- a/chrono/manager/templates/chrono/manager_agenda_day_view.html +++ b/chrono/manager/templates/chrono/manager_agenda_day_view.html @@ -4,30 +4,30 @@ {% block bodyargs %}class="dayview"{% endblock %} {% block breadcrumb %} -{{ block.super }} -{{ day|date:"SHORT_DATE_FORMAT" }} + {{ block.super }} + {{ day|date:"SHORT_DATE_FORMAT" }} {% endblock %} {% block appbar %} -

- - {{ view.date|date:"l j F Y" }} - {% with selected_day=view.date|date:"j" selected_month=view.date|date:"n" selected_year=view.date|date:"Y" %} - - {% endwith %} - -

- -{% block actions %} -{% if user_can_manage %} - {% trans 'Settings' %} -{% endif %} -{% trans 'Print' %} -{% endblock %} - +

+ + {{ view.date|date:"l j F Y" }} + {% with selected_day=view.date|date:"j" selected_month=view.date|date:"n" selected_year=view.date|date:"Y" %} + + {% endwith %} + +

+ + {% block actions %} + {% if user_can_manage %} + {% trans 'Settings' %} + {% endif %} + {% trans 'Print' %} + {% endblock %} + {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_agenda_duplicate_form.html b/chrono/manager/templates/chrono/manager_agenda_duplicate_form.html index 0cd13358..861f3ddc 100644 --- a/chrono/manager/templates/chrono/manager_agenda_duplicate_form.html +++ b/chrono/manager/templates/chrono/manager_agenda_duplicate_form.html @@ -2,21 +2,21 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans "Duplicate Agenda" %} + {{ block.super }} + {% trans "Duplicate Agenda" %} {% endblock %} {% block appbar %} -

{% trans "Duplicate Agenda" %}

+

{% trans "Duplicate Agenda" %}

{% endblock %} {% block content %} -
- {% csrf_token %} - {{ form.as_p }} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} + {{ form.as_p }} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/chrono/manager/templates/chrono/manager_agenda_event_fragment.html b/chrono/manager/templates/chrono/manager_agenda_event_fragment.html index 84a5ca34..292001f9 100644 --- a/chrono/manager/templates/chrono/manager_agenda_event_fragment.html +++ b/chrono/manager/templates/chrono/manager_agenda_event_fragment.html @@ -1,25 +1,25 @@ {% load i18n %}
  • - {% if event.cancellation_status %} + {% if event.main_list_full %}full{% endif %} + {% if event.cancellation_status %}cancelled{% endif %} + {% if not event.in_bookable_period %}not-{% endif %}bookable" + {% if event.places %} + data-total="{{ event.places }}" data-booked="{{ event.booked_places }}" + {% elif event.waiting_list_places %} + data-total="{{ event.waiting_list_places }}" data-booked="{{ event.booked_waiting_list_places }}" + {% endif %} +> + {% if event.cancellation_status %} {{ event.cancellation_status }} - {% else %} - {% if event.main_list_full %} + {% else %} + {% if event.main_list_full %} {% trans "Full" %} - {% endif %} - {% if event.checked %} - {% trans "Checked" %} - {% endif %} {% endif %} - + {% if event.checked %} + {% trans "Checked" %} + {% endif %} + {% endif %} + {% if view_mode == 'settings_view' %} {% if event.label %}{{ event.label }} {% endif %}[{% trans "identifier:" %} {{ event.slug }}] {% else %} @@ -31,31 +31,31 @@ {{ event.get_recurrence_display }} {% endif %} {% if view_mode != 'settings_view' %} - {% if event.places or event.waiting_list_places %}-{% endif %} - {% if event.places %} - {% blocktrans count remaining_places=event.remaining_places %}{{ remaining_places }} remaining place{% plural %}{{ remaining_places }} remaining places{% endblocktrans %} - ({% blocktrans with places=event.places count booked_places=event.booked_places %}{{ booked_places }}/{{ places }} booking{% plural %}{{ booked_places }}/{{ places }} bookings{% endblocktrans %}) - {% endif %} - {% if event.waiting_list_places %} - ({% trans "Waiting list:" %} - {% blocktrans count remaining_places=event.remaining_waiting_list_places %}{{ remaining_places }} remaining place{% plural %}{{ remaining_places }} remaining places{% endblocktrans %} - - - {% blocktrans with places=event.waiting_list_places count booked_places=event.booked_waiting_list_places %}{{ booked_places }}/{{ places }} booking{% plural %}{{ booked_places }}/{{ places }} bookings{% endblocktrans %}) - {% endif %} + {% if event.places or event.waiting_list_places %}-{% endif %} + {% if event.places %} + {% blocktrans count remaining_places=event.remaining_places %}{{ remaining_places }} remaining place{% plural %}{{ remaining_places }} remaining places{% endblocktrans %} + ({% blocktrans with places=event.places count booked_places=event.booked_places %}{{ booked_places }}/{{ places }} booking{% plural %}{{ booked_places }}/{{ places }} bookings{% endblocktrans %}) + {% endif %} + {% if event.waiting_list_places %} + ({% trans "Waiting list:" %} + {% blocktrans count remaining_places=event.remaining_waiting_list_places %}{{ remaining_places }} remaining place{% plural %}{{ remaining_places }} remaining places{% endblocktrans %} + - + {% blocktrans with places=event.waiting_list_places count booked_places=event.booked_waiting_list_places %}{{ booked_places }}/{{ places }} booking{% plural %}{{ booked_places }}/{{ places }} bookings{% endblocktrans %}) + {% endif %} {% endif %} {% if view_mode == 'settings_view' and event.publication_datetime %} - ({% trans "publication date:" %} {{ event.publication_datetime }}) + ({% trans "publication date:" %} {{ event.publication_datetime }}) {% endif %} {% if not event.in_bookable_period %} - ({% trans "out of bookable period" %}) + ({% trans "out of bookable period" %}) {% endif %} - - - {% if view_mode == 'settings_view' %} + + + {% if view_mode == 'settings_view' %} {% trans 'Duplicate' %} {% trans "remove" %} - {% elif agenda.booking_form_url %} + {% elif agenda.booking_form_url %} {% trans "Booking form" %} - {% endif %} - + {% endif %} +
  • diff --git a/chrono/manager/templates/chrono/manager_agenda_form.html b/chrono/manager/templates/chrono/manager_agenda_form.html index 2a48decf..95b8653c 100644 --- a/chrono/manager/templates/chrono/manager_agenda_form.html +++ b/chrono/manager/templates/chrono/manager_agenda_form.html @@ -2,22 +2,22 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans 'Settings' %} -{% firstof title view.title %} + {{ block.super }} + {% trans 'Settings' %} + {% firstof title view.title %} {% endblock %} {% block appbar %} -

    {% firstof title view.title %}

    +

    {% firstof title view.title %}

    {% endblock %} {% block content %} -
    - {% csrf_token %} - {{ form.as_p }} -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} + {{ form.as_p }} +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_agenda_month_view.html b/chrono/manager/templates/chrono/manager_agenda_month_view.html index a62a0e9f..0b05a9cb 100644 --- a/chrono/manager/templates/chrono/manager_agenda_month_view.html +++ b/chrono/manager/templates/chrono/manager_agenda_month_view.html @@ -4,29 +4,29 @@ {% block bodyargs %}class="monthview"{% endblock %} {% block breadcrumb %} -{{ block.super }} -{{ view.date|date:"F Y" }} + {{ block.super }} + {{ view.date|date:"F Y" }} {% endblock %} {% block appbar %} -

    - - {{ view.date|date:"F Y" }} - {% with selected_month=view.date|date:"n" selected_year=view.date|date:"Y" %} - - {% endwith %} - -

    - -{% block actions %} -{% if user_can_manage %} - {% trans 'Settings' %} -{% endif %} -{% trans 'Print' %} -{% endblock %} - +

    + + {{ view.date|date:"F Y" }} + {% with selected_month=view.date|date:"n" selected_year=view.date|date:"Y" %} + + {% endwith %} + +

    + + {% block actions %} + {% if user_can_manage %} + {% trans 'Settings' %} + {% endif %} + {% trans 'Print' %} + {% endblock %} + {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_agenda_notifications_form.html b/chrono/manager/templates/chrono/manager_agenda_notifications_form.html index 663bcc20..bff2b70c 100644 --- a/chrono/manager/templates/chrono/manager_agenda_notifications_form.html +++ b/chrono/manager/templates/chrono/manager_agenda_notifications_form.html @@ -2,34 +2,34 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans 'Settings' %} -{% trans "Notification settings" %} + {{ block.super }} + {% trans 'Settings' %} + {% trans "Notification settings" %} {% endblock %} {% block appbar %} -

    {% trans "Notification settings" %}

    +

    {% trans "Notification settings" %}

    {% endblock %} {% block content %} -
    - {% csrf_token %} - {{ form.as_p }} -
    - - {% trans 'Cancel' %} -
    + + {% csrf_token %} + {{ form.as_p }} +
    + + {% trans 'Cancel' %} +
    - -
    + + {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_agenda_open_events.html b/chrono/manager/templates/chrono/manager_agenda_open_events.html index eec48f3e..be7a0966 100644 --- a/chrono/manager/templates/chrono/manager_agenda_open_events.html +++ b/chrono/manager/templates/chrono/manager_agenda_open_events.html @@ -4,42 +4,42 @@ {% block bodyargs %}class="openevents"{% endblock %} {% block breadcrumb %} -{{ block.super }} -{% trans "Open events" %} + {{ block.super }} + {% trans "Open events" %} {% endblock %} {% block actions %} -{% if agenda.subscriptions.exists %} - - -{% endif %} -{{ block.super }} -{% trans 'Month view' %} + {% if agenda.subscriptions.exists %} + + + {% endif %} + {{ block.super }} + {% trans 'Month view' %} {% endblock %} {% block content %} -
    -

    {% trans "Open events" %}

    -
    -{% if open_events %} - {% for event in open_events %} - {% ifchanged event.start_datetime|date:'n' event.start_datetime|date:'y' %} - {% if not forloop.first %}{% endif %} -

    {{ event.start_datetime|date:'YEAR_MONTH_FORMAT'|capfirst }}

    - {% endif %} - {% endfor %} -{% else %} -
    - {% blocktrans %} - This agenda doesn't have any open event configured. - {% endblocktrans %} -
    -{% endif %} -
    -
    +
    +

    {% trans "Open events" %}

    +
    + {% if open_events %} + {% for event in open_events %} + {% ifchanged event.start_datetime|date:'n' event.start_datetime|date:'y' %} + {% if not forloop.first %}{% endif %} +

    {{ event.start_datetime|date:'YEAR_MONTH_FORMAT'|capfirst }}

    + {% endif %} + {% endfor %} + {% else %} +
    + {% blocktrans %} + This agenda doesn't have any open event configured. + {% endblocktrans %} +
    + {% endif %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_agenda_reminder_preview.html b/chrono/manager/templates/chrono/manager_agenda_reminder_preview.html index 681b5478..32bb95df 100644 --- a/chrono/manager/templates/chrono/manager_agenda_reminder_preview.html +++ b/chrono/manager/templates/chrono/manager_agenda_reminder_preview.html @@ -2,26 +2,26 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans "Reminder message preview" %} + {{ block.super }} + {% trans "Reminder message preview" %} {% endblock %} {% block appbar %} -

    {% trans "Reminder message preview" %}

    +

    {% trans "Reminder message preview" %}

    {% endblock %} {% block content %} -
    -{% if subject %} -

    {% trans "Users will receive the following email:" %}

    - -{% else %} -

    {% trans "Users will receive the following SMS:" %}

    -{% endif %} -

    {{ message }}

    +
    + {% if subject %} +

    {% trans "Users will receive the following email:" %}

    + + {% else %} +

    {% trans "Users will receive the following SMS:" %}

    + {% endif %} +

    {{ message }}

    - -
    + +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_agenda_resource_form.html b/chrono/manager/templates/chrono/manager_agenda_resource_form.html index 4947bb94..d9e3fcc0 100644 --- a/chrono/manager/templates/chrono/manager_agenda_resource_form.html +++ b/chrono/manager/templates/chrono/manager_agenda_resource_form.html @@ -2,22 +2,22 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans "Add resource" %} + {{ block.super }} + {% trans "Add resource" %} {% endblock %} {% block appbar %} -

    {% trans "Add resource" %}

    +

    {% trans "Add resource" %}

    {% endblock %} {% block content %} -
    - {% csrf_token %} - {{ form.as_p }} -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} + {{ form.as_p }} +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_agenda_settings.html b/chrono/manager/templates/chrono/manager_agenda_settings.html index c4d3d5e9..6dc0231f 100644 --- a/chrono/manager/templates/chrono/manager_agenda_settings.html +++ b/chrono/manager/templates/chrono/manager_agenda_settings.html @@ -2,110 +2,110 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% if desk %} -{% trans "Settings" %} -{% else %} -{% trans "Settings" %} -{% endif %} + {{ block.super }} + {% if desk %} + {% trans "Settings" %} + {% else %} + {% trans "Settings" %} + {% endif %} {% endblock %} {% block appbar %} -

    {% trans "Settings" %} +

    {% trans "Settings" %} [{% trans "identifier:" %} {{object.slug}}] -

    - - - {% block agenda-extra-management-actions %} - {% endblock %} - - + + + + {% block agenda-extra-management-actions %} + {% endblock %} + + {% endblock %} {% block content %} -
    -
    -
    - {% block agenda-settings-extra-tab-buttons %}{% endblock %} - {% if object.kind != 'virtual' %} - - {% endif %} - - -
    -
    - - {% block agenda-settings-extra-tab-list %}{% endblock %} - - {% if object.kind != 'virtual' %} - {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_agenda_unavailability_calendar_form.html b/chrono/manager/templates/chrono/manager_agenda_unavailability_calendar_form.html index 3afc32da..9589c359 100644 --- a/chrono/manager/templates/chrono/manager_agenda_unavailability_calendar_form.html +++ b/chrono/manager/templates/chrono/manager_agenda_unavailability_calendar_form.html @@ -2,22 +2,22 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans "Add unavailability calendar" %} + {{ block.super }} + {% trans "Add unavailability calendar" %} {% endblock %} {% block appbar %} -

    {% trans "Add unavailability calendar" %}

    +

    {% trans "Add unavailability calendar" %}

    {% endblock %} {% block content %} -
    - {% csrf_token %} - {{ form.as_p }} -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} + {{ form.as_p }} +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_agenda_view.html b/chrono/manager/templates/chrono/manager_agenda_view.html index a1a57166..5d325448 100644 --- a/chrono/manager/templates/chrono/manager_agenda_view.html +++ b/chrono/manager/templates/chrono/manager_agenda_view.html @@ -2,27 +2,27 @@ {% load i18n %} {% block page-title-extra-label %} -- {% firstof agenda.label object.label %} + - {% firstof agenda.label object.label %} {% endblock %} {% block appbar %} -

    {{ object.label }}

    +

    {{ object.label }}

    {% block actions %} {% if user_can_manage %} - {% trans 'Settings' %} + {% trans 'Settings' %} {% endif %} {% endblock %} {% endblock %} {% block breadcrumb %} -{{ block.super }} -{% if agenda %} -{{agenda.label}} -{% elif object %} -{{object.label}} -{% endif %} + {{ block.super }} + {% if agenda %} + {{agenda.label}} + {% elif object %} + {{object.label}} + {% endif %} {% endblock %} {% block content %} diff --git a/chrono/manager/templates/chrono/manager_base.html b/chrono/manager/templates/chrono/manager_base.html index cf8d8959..35610a50 100644 --- a/chrono/manager/templates/chrono/manager_base.html +++ b/chrono/manager/templates/chrono/manager_base.html @@ -2,8 +2,8 @@ {% load static i18n %} {% block extrascripts %} -{{ block.super }} - + {{ block.super }} + {% endblock %} {% block page-title %} @@ -22,8 +22,8 @@ {% block homepage-title %}{{portal_agent_title}}{% endblock %} {% block breadcrumb %} - {% if portal_agent_url %}{{ block.super }}{% endif %} - {% trans 'Agendas' %} + {% if portal_agent_url %}{{ block.super }}{% endif %} + {% trans 'Agendas' %} {% endblock %} {% block logout-url %}{% url 'auth_logout' %}{% endblock %} diff --git a/chrono/manager/templates/chrono/manager_category_form.html b/chrono/manager/templates/chrono/manager_category_form.html index 66a2e237..29ef45d5 100644 --- a/chrono/manager/templates/chrono/manager_category_form.html +++ b/chrono/manager/templates/chrono/manager_category_form.html @@ -2,21 +2,21 @@ {% load i18n %} {% block appbar %} -{% if object.id %} -

    {% trans "Edit Category" %}

    -{% else %} -

    {% trans "New Category" %}

    -{% endif %} + {% if object.id %} +

    {% trans "Edit Category" %}

    + {% else %} +

    {% trans "New Category" %}

    + {% endif %} {% endblock %} {% block content %} -
    - {% csrf_token %} - {{ form.as_p }} -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} + {{ form.as_p }} +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_category_list.html b/chrono/manager/templates/chrono/manager_category_list.html index be188289..ac10569e 100644 --- a/chrono/manager/templates/chrono/manager_category_list.html +++ b/chrono/manager/templates/chrono/manager_category_list.html @@ -2,36 +2,36 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans "Categories" %} + {{ block.super }} + {% trans "Categories" %} {% endblock %} {% block appbar %} -

    {% trans 'Categories' %}

    - -{% trans 'New' %} - +

    {% trans 'Categories' %}

    + + {% trans 'New' %} + {% endblock %} {% block content %} -{% if object_list %} -
    - -
    -{% else %} -
    - {% 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 %} -
    -{% endif %} + {% if object_list %} +
    + +
    + {% else %} +
    + {% 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 %} +
    + {% endif %} {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_confirm_booking_cancellation.html b/chrono/manager/templates/chrono/manager_confirm_booking_cancellation.html index c5fdb7f5..61e91722 100644 --- a/chrono/manager/templates/chrono/manager_confirm_booking_cancellation.html +++ b/chrono/manager/templates/chrono/manager_confirm_booking_cancellation.html @@ -2,38 +2,38 @@ {% load i18n %} {% block appbar %} -

    {% trans "Cancel booking" %}

    +

    {% trans "Cancel booking" %}

    {% endblock %} {% block content %} -
    - {% if object.get_backoffice_url and not object.cancel_callback_url %} - {% if not user.is_staff %} -

    {% trans "This booking has no callback url configured, cancellation must be handled from corresponding form." %}

    -

    {% trans "Open form" %}

    - {% else %} -
    -

    {% trans "This booking has no callback url configured, cancellation should be handled from corresponding form in order to garantee a coherent situation." %}

    -
    -

    {% trans "Open form" %}

    -

    {% trans "However, since you are an administrator, you can choose to cancel it anyway." %}

    - {% endif %} - {% else %} -

    - {% blocktrans trimmed with booking=booking.events_display %} - Are you sure you want to cancel booking "{{ booking }}"? - {% endblocktrans %} -

    - {% endif %} + + {% if object.get_backoffice_url and not object.cancel_callback_url %} + {% if not user.is_staff %} +

    {% trans "This booking has no callback url configured, cancellation must be handled from corresponding form." %}

    +

    {% trans "Open form" %}

    + {% else %} +
    +

    {% trans "This booking has no callback url configured, cancellation should be handled from corresponding form in order to garantee a coherent situation." %}

    +
    +

    {% trans "Open form" %}

    +

    {% trans "However, since you are an administrator, you can choose to cancel it anyway." %}

    + {% endif %} + {% else %} +

    + {% blocktrans trimmed with booking=booking.events_display %} + Are you sure you want to cancel booking "{{ booking }}"? + {% endblocktrans %} +

    + {% endif %} - {% if not object.get_backoffice_url or object.cancel_callback_url or user.is_staff %} - {% csrf_token %} - - {{ form.as_p }} -
    - - {% trans 'Abort' %} -
    - {% endif %} -
    + {% if not object.get_backoffice_url or object.cancel_callback_url or user.is_staff %} + {% csrf_token %} + + {{ form.as_p }} +
    + + {% trans 'Abort' %} +
    + {% endif %} + {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_confirm_delete.html b/chrono/manager/templates/chrono/manager_confirm_delete.html index cd376fe1..63a05d2f 100644 --- a/chrono/manager/templates/chrono/manager_confirm_delete.html +++ b/chrono/manager/templates/chrono/manager_confirm_delete.html @@ -2,22 +2,22 @@ {% load i18n %} {% block appbar %} -

    {{ view.model.get_verbose_name }}

    +

    {{ view.model.get_verbose_name }}

    {% endblock %} {% block content %} -
    - {% csrf_token %} -

    - {% if cannot_delete %} - {{ cannot_delete_msg }} - {% else %} - {% blocktrans %}Are you sure you want to delete this?{% endblocktrans %} - {% endif %} -

    -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} +

    + {% if cannot_delete %} + {{ cannot_delete_msg }} + {% else %} + {% blocktrans %}Are you sure you want to delete this?{% endblocktrans %} + {% endif %} +

    +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_confirm_event_cancellation.html b/chrono/manager/templates/chrono/manager_confirm_event_cancellation.html index 1744f79c..c71e5ed9 100644 --- a/chrono/manager/templates/chrono/manager_confirm_event_cancellation.html +++ b/chrono/manager/templates/chrono/manager_confirm_event_cancellation.html @@ -2,42 +2,42 @@ {% load i18n %} {% block appbar %} -

    {{ view.model.get_verbose_name }}

    +

    {{ view.model.get_verbose_name }}

    {% endblock %} {% block content %} -
    - {% if cancellation_forbidden %} -
    - {% blocktrans trimmed %} - This event has bookings with no callback url configured. Their cancellation must be - handled individually from the forms attached to them. Only then, cancelling this event - will be allowed. - {% endblocktrans %} -
    - {% else %} - {% csrf_token %} -

    - {% trans "Are you sure you want to cancel this event?" %} - {% if bookings_count %} - {% if cancel_bookings %} - {% blocktrans trimmed count count=bookings_count %} - {{ count }} related booking will also be cancelled. - {% plural %} - {{ count }} related bookings will also be cancelled. - {% endblocktrans %} - {% else %} - {% trans "Related bookings will have to be manually cancelled if needed." %} - {% endif %} - {% endif %} -

    - - {{ form.as_p }} -
    - - {% trans 'Abort' %} -
    - {% endif %} -
    +
    + {% if cancellation_forbidden %} +
    + {% blocktrans trimmed %} + This event has bookings with no callback url configured. Their cancellation must be + handled individually from the forms attached to them. Only then, cancelling this event + will be allowed. + {% endblocktrans %} +
    + {% else %} + {% csrf_token %} +

    + {% trans "Are you sure you want to cancel this event?" %} + {% if bookings_count %} + {% if cancel_bookings %} + {% blocktrans trimmed count count=bookings_count %} + {{ count }} related booking will also be cancelled. + {% plural %} + {{ count }} related bookings will also be cancelled. + {% endblocktrans %} + {% else %} + {% trans "Related bookings will have to be manually cancelled if needed." %} + {% endif %} + {% endif %} +

    + + {{ form.as_p }} +
    + + {% trans 'Abort' %} +
    + {% endif %} +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_confirm_event_delete.html b/chrono/manager/templates/chrono/manager_confirm_event_delete.html index 4e3af096..ff59e49f 100644 --- a/chrono/manager/templates/chrono/manager_confirm_event_delete.html +++ b/chrono/manager/templates/chrono/manager_confirm_event_delete.html @@ -2,23 +2,23 @@ {% load i18n %} {% block appbar %} -

    {{ view.model.get_verbose_name }}

    +

    {{ view.model.get_verbose_name }}

    {% endblock %} {% block content %} -
    - {% csrf_token %} - -

    - {% if cannot_delete %} - {% blocktrans %}This cannot be removed as there are bookings.{% endblocktrans %} - {% else %} - {% blocktrans %}Are you sure you want to delete this event?{% endblocktrans %} - {% endif %} -

    -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} + +

    + {% if cannot_delete %} + {% blocktrans %}This cannot be removed as there are bookings.{% endblocktrans %} + {% else %} + {% blocktrans %}Are you sure you want to delete this event?{% endblocktrans %} + {% endif %} +

    +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_confirm_exception_delete.html b/chrono/manager/templates/chrono/manager_confirm_exception_delete.html index 0d567484..92233ca2 100644 --- a/chrono/manager/templates/chrono/manager_confirm_exception_delete.html +++ b/chrono/manager/templates/chrono/manager_confirm_exception_delete.html @@ -2,18 +2,18 @@ {% load i18n %} {% block appbar %} -

    {{ object }}

    +

    {{ object }}

    {% endblock %} {% block content %} -
    - {% csrf_token %} -

    - {% blocktrans %}Are you sure you want to delete this exception?{% endblocktrans %} -

    -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} +

    + {% blocktrans %}Are you sure you want to delete this exception?{% endblocktrans %} +

    +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_confirm_source_delete.html b/chrono/manager/templates/chrono/manager_confirm_source_delete.html index 4ef0fc04..227875b4 100644 --- a/chrono/manager/templates/chrono/manager_confirm_source_delete.html +++ b/chrono/manager/templates/chrono/manager_confirm_source_delete.html @@ -2,18 +2,18 @@ {% load i18n %} {% block appbar %} -

    {{ object }}

    +

    {{ object }}

    {% endblock %} {% block content %} -
    - {% csrf_token %} -

    - {% blocktrans %}Are you sure you want to delete this exception source?{% endblocktrans %} -

    -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} +

    + {% blocktrans %}Are you sure you want to delete this exception source?{% endblocktrans %} +

    +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_confirm_virtual_member_delete.html b/chrono/manager/templates/chrono/manager_confirm_virtual_member_delete.html index 9ba14c82..a4a2999d 100644 --- a/chrono/manager/templates/chrono/manager_confirm_virtual_member_delete.html +++ b/chrono/manager/templates/chrono/manager_confirm_virtual_member_delete.html @@ -2,18 +2,18 @@ {% load i18n %} {% block appbar %} -

    {% trans "Exclude Agenda" %}

    +

    {% trans "Exclude Agenda" %}

    {% endblock %} {% block content %} -
    - {% csrf_token %} -

    - {% blocktrans %}Are you sure you want to exclude this agenda from the virtual agenda ?{% endblocktrans %} -

    -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} +

    + {% blocktrans %}Are you sure you want to exclude this agenda from the virtual agenda ?{% endblocktrans %} +

    +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_desk_form.html b/chrono/manager/templates/chrono/manager_desk_form.html index 3329da61..c82fe7fa 100644 --- a/chrono/manager/templates/chrono/manager_desk_form.html +++ b/chrono/manager/templates/chrono/manager_desk_form.html @@ -2,38 +2,38 @@ {% load i18n %} {% block extrascripts %} -{{ block.super }} -{{ form.media }} + {{ block.super }} + {{ form.media }} {% endblock %} {% block breadcrumb %} -{{ block.super }} -{% if object.id %} -{{object.label}} -{% else %} -{% trans "New Desk" %} -{% endif %} + {{ block.super }} + {% if object.id %} + {{object.label}} + {% else %} + {% trans "New Desk" %} + {% endif %} {% endblock %} {% block appbar %} -{% if object.id %} -

    {% trans "Edit Desk" %}

    - -{% trans 'Delete' %} - -{% else %} -

    {% trans "New Desk" %}

    -{% endif %} + {% if object.id %} +

    {% trans "Edit Desk" %}

    + + {% trans 'Delete' %} + + {% else %} +

    {% trans "New Desk" %}

    + {% endif %} {% endblock %} {% block content %} -
    - {% csrf_token %} - {{ form.as_p }} -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} + {{ form.as_p }} +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_event_cancellation_report.html b/chrono/manager/templates/chrono/manager_event_cancellation_report.html index 11acdb71..7b01757c 100644 --- a/chrono/manager/templates/chrono/manager_event_cancellation_report.html +++ b/chrono/manager/templates/chrono/manager_event_cancellation_report.html @@ -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 }} -{% trans "Cancellation error reports" %} + {{ block.super }} + {% trans "Cancellation error reports" %} {% endblock %} {% block appbar %} -

    {% trans "Cancellation error report:" %} {{ report }}

    -{% block actions %} -{% trans "Force cancellation" %} -{% endblock %} +

    {% trans "Cancellation error report:" %} {{ report }}

    + {% block actions %} + {% trans "Force cancellation" %} + {% endblock %} {% endblock %} {% block content %} -

    {% trans "Cancellation failed for the following bookings:" %}

    - +

    {% trans "Cancellation failed for the following bookings:" %}

    + {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_event_cancellation_report_notice.html b/chrono/manager/templates/chrono/manager_event_cancellation_report_notice.html index 53dd000f..170f76e4 100644 --- a/chrono/manager/templates/chrono/manager_event_cancellation_report_notice.html +++ b/chrono/manager/templates/chrono/manager_event_cancellation_report_notice.html @@ -1,10 +1,10 @@ {% load i18n %} {% for report in cancellation_reports %} -
    -

    -{% blocktrans with event=report.event %}Errors occured during cancellation of event "{{ event }}".{% endblocktrans %} -{% trans "Details" %} -

    -
    +
    +

    + {% blocktrans with event=report.event %}Errors occured during cancellation of event "{{ event }}".{% endblocktrans %} + {% trans "Details" %} +

    +
    {% endfor %} diff --git a/chrono/manager/templates/chrono/manager_event_cancellation_reports.html b/chrono/manager/templates/chrono/manager_event_cancellation_reports.html index 817c2511..5c5b69b1 100644 --- a/chrono/manager/templates/chrono/manager_event_cancellation_reports.html +++ b/chrono/manager/templates/chrono/manager_event_cancellation_reports.html @@ -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 }} -{% trans "Cancellation error reports" %} + {{ block.super }} + {% trans "Cancellation error reports" %} {% endblock %} {% block appbar %} -

    {% trans "Cancellation error reports" %}

    +

    {% trans "Cancellation error reports" %}

    {% endblock %} {% block content %} -
      -{% for report in cancellation_reports %} -
    • - {{ report }} - ({% blocktrans count count=report.bookings.count %}{{ count }} failure{% plural %}{{ count }} failures{% endblocktrans %}) -
    • -{% empty %} -
    • {% trans "No error report to show." %}
    • -{% endfor %} -
    +
      + {% for report in cancellation_reports %} +
    • + {{ report }} + ({% blocktrans count count=report.bookings.count %}{{ count }} failure{% plural %}{{ count }} failures{% endblocktrans %}) +
    • + {% empty %} +
    • {% trans "No error report to show." %}
    • + {% endfor %} +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_event_check.html b/chrono/manager/templates/chrono/manager_event_check.html index 030fd8b2..0e38deb9 100644 --- a/chrono/manager/templates/chrono/manager_event_check.html +++ b/chrono/manager/templates/chrono/manager_event_check.html @@ -2,119 +2,119 @@ {% load static i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans "Check" %} + {{ block.super }} + {% trans "Check" %} {% endblock %} {% block appbar_actions %}{% endblock %} {% block content %} -
    -

    - {% blocktrans with booked_places=object.booked_places places=object.places %}Bookings ({{ booked_places }}/{{ places }}){% endblocktrans %} -

    -
    -
    - {{ filterset.form.as_p }} - -
    - - - {% if results and not event.checked %} - - - - {% endif %} - {% if booked_without_status %} - {% if not event.checked or not agenda.disable_check_update %} - - - - - {% endif %} - {% endif %} - {% for result in results %} - - {% if result.kind == 'booking' %} - {% if result.cancellation_datetime is None %} - {% include "chrono/manager_event_check_booking_fragment.html" with booking=result %} - {% else %} - - - {% if not event.checked or not agenda.disable_check_update %} - + + +
    -
    - {% csrf_token %} - -
    -
    {% trans "Mark all bookings without status:" %} -
    - {% csrf_token %} - - {% if presence_form.check_type.field.choices.1 %}{{ presence_form.check_type }}{% endif %} - -
    -
    - {% csrf_token %} - - {% if absence_form.check_type.field.choices.1 %}{{ absence_form.check_type }}{% endif %} - -
    -
    {{ result.get_user_block }}({% trans "Cancelled" %})
    + + {% if results and not event.checked %} + + + + {% endif %} + {% if booked_without_status %} + {% if not event.checked or not agenda.disable_check_update %} + + + + + {% endif %} + {% endif %} + {% for result in results %} + + {% if result.kind == 'booking' %} + {% if result.cancellation_datetime is None %} + {% include "chrono/manager_event_check_booking_fragment.html" with booking=result %} + {% else %} + + + {% if not event.checked or not agenda.disable_check_update %} + + {% endif %} + {% endif %} + {% elif result.kind == 'subscription' %} + + + {% if not event.checked or not agenda.disable_check_update %} + + {% endif %} {% endif %} - {% endif %} - {% elif result.kind == 'subscription' %} - - - {% if not event.checked or not agenda.disable_check_update %} - - {% endif %} - {% endif %} - - {% endfor %} - -
    +
    + {% csrf_token %} + +
    +
    {% trans "Mark all bookings without status:" %} +
    + {% csrf_token %} + + {% if presence_form.check_type.field.choices.1 %}{{ presence_form.check_type }}{% endif %} + +
    +
    + {% csrf_token %} + + {% if absence_form.check_type.field.choices.1 %}{{ absence_form.check_type }}{% endif %} + +
    +
    {{ result.get_user_block }}({% trans "Cancelled" %}){{ result.get_user_block }}({% trans "Not booked" %}){{ result.get_user_block }}({% trans "Not booked" %})
    + + {% endfor %} + + +
    -
    -{% if object.waiting_list_places %} -
    -

    - {% blocktrans with booked_places=object.booked_waiting_list_places places=object.waiting_list_places %}Waiting List ({{ booked_places }}/{{ places }}){% endblocktrans %} -

    -
    - - - {% for booking in waiting %} - - - - - {% endfor %} - -
    {{ booking.get_user_block }}{% if booking.places_count > 1 %} ({{ booking.places_count }} {% trans "places" %}){% endif %}{% if booking.cancellation_datetime %}({% trans "Cancelled" %}){% endif %}
    -
    -
    -{% endif %} + {% if object.waiting_list_places %} +
    +

    + {% blocktrans with booked_places=object.booked_waiting_list_places places=object.waiting_list_places %}Waiting List ({{ booked_places }}/{{ places }}){% endblocktrans %} +

    +
    + + + {% for booking in waiting %} + + + + + {% endfor %} + +
    {{ booking.get_user_block }}{% if booking.places_count > 1 %} ({{ booking.places_count }} {% trans "places" %}){% endif %}{% if booking.cancellation_datetime %}({% trans "Cancelled" %}){% endif %}
    +
    +
    + {% endif %} {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_event_check_booking_fragment.html b/chrono/manager/templates/chrono/manager_event_check_booking_fragment.html index 0b75a49d..8505dd4c 100644 --- a/chrono/manager/templates/chrono/manager_event_check_booking_fragment.html +++ b/chrono/manager/templates/chrono/manager_event_check_booking_fragment.html @@ -8,36 +8,36 @@ {% endif %} {% if not event.checked or not agenda.disable_check_update %} - -
    - {% csrf_token %} - - {% if booking.presence_form.check_type.field.choices.1 %}{{ booking.presence_form.check_type }}{% endif %} - -
    -
    - {% csrf_token %} - - {% if booking.absence_form.check_type.field.choices.1 %}{{ booking.absence_form.check_type }}{% endif %} - +
    +
    + {% csrf_token %} + + {% if booking.absence_form.check_type.field.choices.1 %}{{ booking.absence_form.check_type }}{% endif %} + -
    - + + + {% endif %} diff --git a/chrono/manager/templates/chrono/manager_event_detail.html b/chrono/manager/templates/chrono/manager_event_detail.html index 7ed2d80e..5337d80a 100644 --- a/chrono/manager/templates/chrono/manager_event_detail.html +++ b/chrono/manager/templates/chrono/manager_event_detail.html @@ -2,63 +2,63 @@ {% load static i18n %} {% block extrascripts %} -{{ block.super }} - + {{ block.super }} + {% endblock %} {% block page-title-extra-label %} -- {% firstof agenda.label event.label %} + - {% firstof agenda.label event.label %} {% endblock %} {% block breadcrumb %} -{{ block.super }} -{{agenda.label}} -{{event}} + {{ block.super }} + {{agenda.label}} + {{event}} {% endblock %} {% block appbar %} -

    -{% if event.label %} -{{ event.label }} — {{event.start_datetime|date:"DATETIME_FORMAT"}} -{% else %} -{{ event.start_datetime|date:"DATETIME_FORMAT"}} -{% endif %} -{% if event.cancellation_status %}{{ event.cancellation_status }}{% endif %} -{% if event.main_list_full %}{% trans "Full" %}{% endif %} -{% if event.checked %}{% trans "Checked" %}{% endif %} -

    -{% block appbar_actions %} - - {% if user_can_manage or event.agenda.booking_form_url %} - -
      - {% if user_can_manage %} - {% if not event.primary_event %} -
    • {% trans 'Delete' %}
    • +

      + {% if event.label %} + {{ event.label }} — {{event.start_datetime|date:"DATETIME_FORMAT"}} + {% else %} + {{ event.start_datetime|date:"DATETIME_FORMAT"}} {% endif %} - {% if not event.cancellation_status %} -
    • {% trans "Cancel" %}
    • - {% endif %} -
    • {% trans "Options" %}
    • - {% endif %} - {% if event.agenda.booking_form_url %} -
    • {% trans "Booking form" %}
    • - {% endif %} - {% if not event.cancelled and agenda.subscriptions.exists %} -
    • {% trans "Timesheet" %}
    • - {% endif %} -

    - {% endif %} - {% if event.is_day_past and not event.cancelled %} - {% trans "Check" %} - {% endif %} -
    -{% endblock %} + {% if event.cancellation_status %}{{ event.cancellation_status }}{% endif %} + {% if event.main_list_full %}{% trans "Full" %}{% endif %} + {% if event.checked %}{% trans "Checked" %}{% endif %} + + {% block appbar_actions %} + + {% if user_can_manage or event.agenda.booking_form_url %} + + + {% endif %} + {% if event.is_day_past and not event.cancelled %} + {% trans "Check" %} + {% endif %} + + {% endblock %} {% endblock %} {% block content %} -
    - {% include "chrono/manager_event_detail_fragment.html" %} -
    +
    + {% include "chrono/manager_event_detail_fragment.html" %} +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_event_detail_fragment.html b/chrono/manager/templates/chrono/manager_event_detail_fragment.html index 75294c69..bfc52429 100644 --- a/chrono/manager/templates/chrono/manager_event_detail_fragment.html +++ b/chrono/manager/templates/chrono/manager_event_detail_fragment.html @@ -1,13 +1,13 @@ {% load i18n %} {% if object.description or object.pricing or object.url %} -
    -
    - {% if object.description %}{{ object.description|linebreaks }}{% endif %} - {% if object.pricing %}

    {% trans "Pricing:" %} {{ object.pricing }}

    {% endif %} - {% if object.url %}

    {{ object.url|truncatechars:100 }}

    {% endif %} - {% if object.publication_datetime %}

    {% trans "Publication date:" %} {{ object.publication_datetime }}

    {% endif %} -
    -
    +
    +
    + {% if object.description %}{{ object.description|linebreaks }}{% endif %} + {% if object.pricing %}

    {% trans "Pricing:" %} {{ object.pricing }}

    {% endif %} + {% if object.url %}

    {{ object.url|truncatechars:100 }}

    {% endif %} + {% if object.publication_datetime %}

    {% trans "Publication date:" %} {{ object.publication_datetime }}

    {% endif %} +
    +
    {% endif %}
    @@ -18,44 +18,44 @@ Bookings ({{ booked_places }}/{{ places }}): {{ remaining_places }} remaining places {% endblocktrans %} -
    +
    - {% if object.booked_places > event.places %} -

    {% trans "This event is overbooked." %}

    - {% elif object.booked_places == event.places %} -

    {% trans "This event is full." %}

    - {% endif %} - - -
    + + +
    {% if object.waiting_list_places %} -
    -

    - {% 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 - {% plural %} - Waiting List ({{ booked_places }}/{{ places }}): {{ remaining_places }} remaining places - {% endblocktrans %} -

    -
    - -
    -
    +
    +

    + {% 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 + {% plural %} + Waiting List ({{ booked_places }}/{{ places }}): {{ remaining_places }} remaining places + {% endblocktrans %} +

    +
    + +
    +
    {% endif %} diff --git a/chrono/manager/templates/chrono/manager_event_duplicate_form.html b/chrono/manager/templates/chrono/manager_event_duplicate_form.html index a7912b1c..fa893eeb 100644 --- a/chrono/manager/templates/chrono/manager_event_duplicate_form.html +++ b/chrono/manager/templates/chrono/manager_event_duplicate_form.html @@ -2,22 +2,22 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans 'Settings' %} -{% trans "Duplicate Event" %} + {{ block.super }} + {% trans 'Settings' %} + {% trans "Duplicate Event" %} {% endblock %} {% block appbar %} -

    {% trans "Duplicate Event" %}

    +

    {% trans "Duplicate Event" %}

    {% endblock %} {% block content %} -
    - {% csrf_token %} - {{ form.as_p }} -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} + {{ form.as_p }} +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_event_form.html b/chrono/manager/templates/chrono/manager_event_form.html index 37124b48..2194f035 100644 --- a/chrono/manager/templates/chrono/manager_event_form.html +++ b/chrono/manager/templates/chrono/manager_event_form.html @@ -2,54 +2,54 @@ {% load i18n gadjo %} {% block extrascripts %} -{{ block.super }} -{{ form.media }} + {{ block.super }} + {{ form.media }} {% endblock %} {% block breadcrumb %} -{{ block.super }} -{% if object.id %} -{{object.agenda.label}} -{% endif %} + {{ block.super }} + {% if object.id %} + {{object.agenda.label}} + {% endif %} {% endblock %} {% block appbar %} -{% if object.id %} -

    {% trans "Edit Event" %}

    - -{% if not object.primary_event %} -{% trans 'Delete' %} -{% endif %} - -{% else %} -

    {% trans "New Event" %}

    -{% endif %} + {% if object.id %} +

    {% trans "Edit Event" %}

    + + {% if not object.primary_event %} + {% trans 'Delete' %} + {% endif %} + + {% else %} +

    {% trans "New Event" %}

    + {% endif %} {% endblock %} {% block content %} -
    - {% csrf_token %} - - {{ form|with_template }} -
    - - {% trans 'Cancel' %} -
    + + {% csrf_token %} + + {{ form|with_template }} +
    + + {% trans 'Cancel' %} +
    - -
    + if(this.value == 'unique') { + recurrence_fields.hide(); + } else { + recurrence_fields.show(); + } + }).change(); + }); + + {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_event_timesheet.html b/chrono/manager/templates/chrono/manager_event_timesheet.html index a2aa56ee..8fb1a72d 100644 --- a/chrono/manager/templates/chrono/manager_event_timesheet.html +++ b/chrono/manager/templates/chrono/manager_event_timesheet.html @@ -2,8 +2,8 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans "Timesheet" %} + {{ block.super }} + {% trans "Timesheet" %} {% endblock %} {% block appbar_actions %}{% endblock %} diff --git a/chrono/manager/templates/chrono/manager_events_agenda_day_view.html b/chrono/manager/templates/chrono/manager_events_agenda_day_view.html index 8082218e..6a8633ac 100644 --- a/chrono/manager/templates/chrono/manager_events_agenda_day_view.html +++ b/chrono/manager/templates/chrono/manager_events_agenda_day_view.html @@ -2,35 +2,35 @@ {% load i18n %} {% block actions %} -{% if agenda.subscriptions.exists %} - - -{% endif %} -{{ block.super }} -{% trans 'Open events' %} -{% trans 'Month view' %} + {% if agenda.subscriptions.exists %} + + + {% endif %} + {{ block.super }} + {% trans 'Open events' %} + {% trans 'Month view' %} {% endblock %} {% block content %} -
    -

    {% trans "Events" %}

    -
    -{% if object_list %} - - {% include "gadjo/pagination.html" %} -{% else %} -
    - {% blocktrans %} - This day doesn't have any event configured. - {% endblocktrans %} -
    -{% endif %} -
    -
    +
    +

    {% trans "Events" %}

    +
    + {% if object_list %} + + {% include "gadjo/pagination.html" %} + {% else %} +
    + {% blocktrans %} + This day doesn't have any event configured. + {% endblocktrans %} +
    + {% endif %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_events_agenda_month_view.html b/chrono/manager/templates/chrono/manager_events_agenda_month_view.html index 298874d5..966e6ce0 100644 --- a/chrono/manager/templates/chrono/manager_events_agenda_month_view.html +++ b/chrono/manager/templates/chrono/manager_events_agenda_month_view.html @@ -2,42 +2,42 @@ {% load i18n %} {% block actions %} - - -{{ block.super }} -{% trans 'Open events' %} -{% trans 'Day view' %} + + + {{ block.super }} + {% trans 'Open events' %} + {% trans 'Day view' %} {% endblock %} {% block content %} -
    -

    {% trans "Events" %}

    -{% include 'chrono/manager_event_cancellation_report_notice.html' %} -
    -{% if object_list %} - - {% include "gadjo/pagination.html" %} -{% else %} -
    - {% blocktrans %} - This month doesn't have any event configured. - {% endblocktrans %} -
    -{% endif %} -
    -
    +
    +

    {% trans "Events" %}

    + {% include 'chrono/manager_event_cancellation_report_notice.html' %} +
    + {% if object_list %} + + {% include "gadjo/pagination.html" %} + {% else %} +
    + {% blocktrans %} + This month doesn't have any event configured. + {% endblocktrans %} +
    + {% endif %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_events_agenda_settings.html b/chrono/manager/templates/chrono/manager_events_agenda_settings.html index 6d226390..6aa98a5c 100644 --- a/chrono/manager/templates/chrono/manager_events_agenda_settings.html +++ b/chrono/manager/templates/chrono/manager_events_agenda_settings.html @@ -13,60 +13,60 @@ {% endblock %} {% block agenda-settings-extra-tab-buttons %} - - {% if has_recurring_events %} + + {% if has_recurring_events %} - {% endif %} - - - + {% endif %} + + + {% endblock %} {% block agenda-settings-extra-tab-list %} -
    - {% with view.get_events as events %} +
    + {% with view.get_events as events %} {% if events %} - {% else %} -
    - {% blocktrans %} - This agenda doesn't have any event yet. Click on the "New Event" button in - the top right of the page to add a first one. - {% endblocktrans %} -
    - {% endif %} - {% endwith %} -
    - - {% if has_recurring_events %} - + + {% if has_recurring_events %} +
    - {% endif %} + {% endif %} - - -
    diff --git a/chrono/manager/templates/chrono/manager_events_timesheet_fragment.html b/chrono/manager/templates/chrono/manager_events_timesheet_fragment.html index c8d6966f..7401f6ee 100644 --- a/chrono/manager/templates/chrono/manager_events_timesheet_fragment.html +++ b/chrono/manager/templates/chrono/manager_events_timesheet_fragment.html @@ -1,69 +1,69 @@ {% load i18n %} {% if event %} -

    {% blocktrans with event_date=event.start_datetime %}Timesheet - {{ event }} - {{ event_date }}{% endblocktrans %}

    +

    {% blocktrans with event_date=event.start_datetime %}Timesheet - {{ event }} - {{ event_date }}{% endblocktrans %}

    {% else %} -

    {% blocktrans with start=form.cleaned_data.date_start end=form.cleaned_data.date_end %}Timesheet from {{ start }} to {{ end }}{% endblocktrans %}

    +

    {% blocktrans with start=form.cleaned_data.date_start end=form.cleaned_data.date_end %}Timesheet from {{ start }} to {{ end }}{% endblocktrans %}

    {% 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 %}
    {{ form.cleaned_data.group_by }}: {{ grouper.grouper }}
    {% endif %} - - - - - - {% for k in slots.extra_data %}{% endfor %} - {% if events_num > 1 and form.cleaned_data.activity_display != 'col' %}{% endif %} - {% for date, events in dates %} - {% if form.cleaned_data.activity_display == 'col' %} - {% for event in events %} - - {% endfor %} - {% else %} - - {% endif %} + {% with events_num=slots.events|length %} + {% for dates in slots.dates %} + {% for grouper in slots.users %} + {% if form.cleaned_data.group_by %}
    {{ form.cleaned_data.group_by }}: {{ grouper.grouper }}
    {% endif %} +
    {% trans "First name" %}{% trans "Last name" %}{{ k }}{% trans "Activity" %}{% blocktrans with date=date|date:"d/m" %}{{ event }} of {{ date }}{% endblocktrans %}{{ date|date:"D d/m" }}
    + + + + + {% for k in slots.extra_data %}{% endfor %} + {% if events_num > 1 and form.cleaned_data.activity_display != 'col' %}{% endif %} + {% for date, events in dates %} + {% if form.cleaned_data.activity_display == 'col' %} + {% for event in events %} + + {% endfor %} + {% else %} + + {% endif %} + {% endfor %} + + + + {% if form.cleaned_data.activity_display == 'col' %} + {% for user in grouper.users %} + + + + {% for k in slots.extra_data %}{% endfor %} + {% for date, events in dates %} + {% for event in events %} + {% for item in user.events %}{% if item.event == event %}{% with booked=item.dates|get:date %}{% endwith %}{% endif %}{% endfor %} + {% endfor %} + {% endfor %} + + {% endfor %} + {% else %} + {% for user in grouper.users %}{% for item in user.events %} + + {% if forloop.first %} + + + {% for k in slots.extra_data %}{% endfor %} + {% endif %} + {% if events_num > 1 %}{% endif %} + {% for date, events in dates %} + {% with booked=item.dates|get:date %}{% endwith %} + {% endfor %} + + {% endfor %}{% endfor %} + {% endif %} + +
    {% trans "First name" %}{% trans "Last name" %}{{ k }}{% trans "Activity" %}{% blocktrans with date=date|date:"d/m" %}{{ event }} of {{ date }}{% endblocktrans %}{{ date|date:"D d/m" }}
    {{ user.user_first_name }}{{ user.user_last_name }}{{ user.extra_data|get:k }}{% if booked is True %}☐{% elif booked is None %}-{% endif %}
    1 %}rowspan="{{ events_num }}"{% endif %}>{{ user.user_first_name }} 1 %}rowspan="{{ events_num }}"{% endif %}>{{ user.user_last_name }} 1 %}rowspan="{{ events_num }}"{% endif %}>{{ user.extra_data|get:k }}{{ item.event }}{% if booked is True %}☐{% elif booked is None %}-{% endif %}
    + {% if form.cleaned_data.with_page_break %}{% if not forloop.last or not forloop.parentloop.last %}
    {% endif %}{% endif %} {% endfor %} - - - - {% if form.cleaned_data.activity_display == 'col' %} - {% for user in grouper.users %} - - {{ user.user_first_name }} - {{ user.user_last_name }} - {% for k in slots.extra_data %}{{ user.extra_data|get:k }}{% endfor %} - {% for date, events in dates %} - {% for event in events %} - {% for item in user.events %}{% if item.event == event %}{% with booked=item.dates|get:date %}{% if booked is True %}☐{% elif booked is None %}-{% endif %}{% endwith %}{% endif %}{% endfor %} - {% endfor %} - {% endfor %} - - {% endfor %} - {% else %} - {% for user in grouper.users %}{% for item in user.events %} - - {% if forloop.first %} - 1 %}rowspan="{{ events_num }}"{% endif %}>{{ user.user_first_name }} - 1 %}rowspan="{{ events_num }}"{% endif %}>{{ user.user_last_name }} - {% for k in slots.extra_data %} 1 %}rowspan="{{ events_num }}"{% endif %}>{{ user.extra_data|get:k }}{% endfor %} - {% endif %} - {% if events_num > 1 %}{{ item.event }}{% endif %} - {% for date, events in dates %} - {% with booked=item.dates|get:date %}{% if booked is True %}☐{% elif booked is None %}-{% endif %}{% endwith %} - {% endfor %} - - {% endfor %}{% endfor %} - {% endif %} - - -{% if form.cleaned_data.with_page_break %}{% if not forloop.last or not forloop.parentloop.last %}
    {% endif %}{% endif %} -{% endfor %} -{% if not form.cleaned_data.with_page_break and not forloop.last %}
    {% endif %} -{% endfor %} -{% endwith %} + {% if not form.cleaned_data.with_page_break and not forloop.last %}
    {% endif %} + {% endfor %} + {% endwith %} {% endwith %} diff --git a/chrono/manager/templates/chrono/manager_events_timesheet_pdf.html b/chrono/manager/templates/chrono/manager_events_timesheet_pdf.html index e1194192..aaef1410 100644 --- a/chrono/manager/templates/chrono/manager_events_timesheet_pdf.html +++ b/chrono/manager/templates/chrono/manager_events_timesheet_pdf.html @@ -1,22 +1,22 @@ {% load static i18n %} - - - - {% blocktrans with start=form.cleaned_data.date_start end=form.cleaned_data.date_end %}Timesheet from {{ start }} to {{ end }}{% endblocktrans %} - - - - - -
    - {% if request.GET and form.is_valid %} - {% include 'chrono/manager_events_timesheet_fragment.html' %} - {% endif %} -
    - + } + + + +
    + {% if request.GET and form.is_valid %} + {% include 'chrono/manager_events_timesheet_fragment.html' %} + {% endif %} +
    + diff --git a/chrono/manager/templates/chrono/manager_events_type_form.html b/chrono/manager/templates/chrono/manager_events_type_form.html index 7674e3de..0ab33ef3 100644 --- a/chrono/manager/templates/chrono/manager_events_type_form.html +++ b/chrono/manager/templates/chrono/manager_events_type_form.html @@ -2,56 +2,56 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% if object.pk %} -{{ object.label }} -{% else %} -{% trans "New events type" %} -{% endif %} + {{ block.super }} + {% if object.pk %} + {{ object.label }} + {% else %} + {% trans "New events type" %} + {% endif %} {% endblock %} {% block appbar %} -{% if object.pk %} -

    {% trans "Edit events type" %}

    -{% else %} -

    {% trans "New events type" %}

    -{% endif %} + {% if object.pk %} +

    {% trans "Edit events type" %}

    + {% else %} +

    {% trans "New events type" %}

    + {% endif %} {% endblock %} {% block content %} -
    - {% csrf_token %} - {{ form.as_p }} - {% if object.pk %} -

    {% trans "Custom fields" %}

    - {{ formset.management_form }} - - - - {% for field in formset.0 %} - - {% endfor %} - - - - {% for sub_form in formset %} - - {% for field in sub_form %} - - {% endfor %} - - {% endfor %} - -
    {{ field.label }}
    - {{ field.errors.as_ul }} - {{ field }} -
    - - {% endif %} -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} + {{ form.as_p }} + {% if object.pk %} +

    {% trans "Custom fields" %}

    + {{ formset.management_form }} + + + + {% for field in formset.0 %} + + {% endfor %} + + + + {% for sub_form in formset %} + + {% for field in sub_form %} + + {% endfor %} + + {% endfor %} + +
    {{ field.label }}
    + {{ field.errors.as_ul }} + {{ field }} +
    + + {% endif %} +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_events_type_list.html b/chrono/manager/templates/chrono/manager_events_type_list.html index b2f5916a..750de512 100644 --- a/chrono/manager/templates/chrono/manager_events_type_list.html +++ b/chrono/manager/templates/chrono/manager_events_type_list.html @@ -2,38 +2,38 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} -{% trans "Events types" %} + {{ block.super }} + {% trans "Events types" %} {% endblock %} {% block appbar %} -

    {% trans 'Events types' %}

    - -{% trans 'New' %} - +

    {% trans 'Events types' %}

    + + {% trans 'New' %} + {% endblock %} {% block content %} -
    -

    {% trans "Define here events types to set on events agendas." %}

    -
    -{% if object_list %} -
    - -
    -{% else %} -
    - {% 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 %} -
    -{% endif %} +
    +

    {% trans "Define here events types to set on events agendas." %}

    +
    + {% if object_list %} +
    + +
    + {% else %} +
    + {% 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 %} +
    + {% endif %} {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_home.html b/chrono/manager/templates/chrono/manager_home.html index 684605f0..7e907116 100644 --- a/chrono/manager/templates/chrono/manager_home.html +++ b/chrono/manager/templates/chrono/manager_home.html @@ -2,55 +2,55 @@ {% load i18n %} {% block appbar %} -

    {% trans 'Agendas' %}

    - -{% if user.is_staff or has_access_to_unavailability_calendars %} - - -{% endif %} -{% if user.is_staff %} -{% trans 'Categories' %} -{% trans 'New' %} -{% endif %} - + {% endblock %} {% block content %} -{% if object_list %} -{% regroup object_list by category as agenda_groups %} -{% for group in agenda_groups %} -
    - {% if group.grouper %}

    {{ group.grouper }}

    {% elif not forloop.first %}

    {% trans "Misc" %}

    {% endif %} - -
    -{% endfor %} -{% else %} -
    - {% 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 %} -
    -{% endif %} + {% else %} +
    + {% 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 %} +
    + {% endif %} {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_import_events.html b/chrono/manager/templates/chrono/manager_import_events.html index ffe74c84..5d79a972 100644 --- a/chrono/manager/templates/chrono/manager_import_events.html +++ b/chrono/manager/templates/chrono/manager_import_events.html @@ -2,30 +2,30 @@ {% load i18n %} {% block extrascripts %} -{{ block.super }} -{{ form.media }} + {{ block.super }} + {{ form.media }} {% endblock %} {% block breadcrumb %} -{{ block.super }} -{{agenda.label}} + {{ block.super }} + {{agenda.label}} {% endblock %} {% block appbar %} -

    {% trans "Import Events" %}

    +

    {% trans "Import Events" %}

    {% endblock %} {% block content %} -
    - {% csrf_token %} - {{ form.as_p }} -

    - {% trans 'Download sample file' %} -

    -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} + {{ form.as_p }} +

    + {% trans 'Download sample file' %} +

    +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_import_exceptions.html b/chrono/manager/templates/chrono/manager_import_exceptions.html index d2718892..8a0d8aa9 100644 --- a/chrono/manager/templates/chrono/manager_import_exceptions.html +++ b/chrono/manager/templates/chrono/manager_import_exceptions.html @@ -2,56 +2,56 @@ {% load i18n %} {% block extrascripts %} -{{ block.super }} -{{ form.media }} + {{ block.super }} + {{ form.media }} {% endblock %} {% block breadcrumb %} -{{ block.super }} -{% trans "Manage exception sources" %} + {{ block.super }} + {% trans "Manage exception sources" %} {% endblock %} {% block appbar %} -

    {% trans "Manage exception sources" %}

    +

    {% trans "Manage exception sources" %}

    {% endblock %} {% block content %} -
    - {% if exception_sources or unavailability_calendars %} - + {% endif %} -

    {% trans "To add new exceptions, you can upload a file or specify an address to a remote calendar." %}

    - {% csrf_token %} - {{ form.as_p }} -

    -

    -
    - - {% trans 'Cancel' %} -
    -
    +

    {% trans "To add new exceptions, you can upload a file or specify an address to a remote calendar." %}

    + {% csrf_token %} + {{ form.as_p }} +

    +

    +
    + + {% trans 'Cancel' %} +
    + {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_meeting_type_form.html b/chrono/manager/templates/chrono/manager_meeting_type_form.html index f3c9cfe3..92133f52 100644 --- a/chrono/manager/templates/chrono/manager_meeting_type_form.html +++ b/chrono/manager/templates/chrono/manager_meeting_type_form.html @@ -2,36 +2,36 @@ {% load i18n %} {% block extrascripts %} -{{ block.super }} -{{ form.media }} + {{ block.super }} + {{ form.media }} {% endblock %} {% block breadcrumb %} -{{ block.super }} -{% if object.id %} -{{object.agenda.label}} -{% endif %} + {{ block.super }} + {% if object.id %} + {{object.agenda.label}} + {% endif %} {% endblock %} {% block appbar %} -{% if object.id %} -

    {% trans "Edit Meeting Type" %}

    - -{% trans 'Delete' %} - -{% else %} -

    {% trans "New Meeting Type" %}

    -{% endif %} + {% if object.id %} +

    {% trans "Edit Meeting Type" %}

    + + {% trans 'Delete' %} + + {% else %} +

    {% trans "New Meeting Type" %}

    + {% endif %} {% endblock %} {% block content %} -
    - {% csrf_token %} - {{ form.as_p }} -
    - - {% trans 'Cancel' %} -
    -
    +
    + {% csrf_token %} + {{ form.as_p }} +
    + + {% trans 'Cancel' %} +
    +
    {% endblock %} diff --git a/chrono/manager/templates/chrono/manager_meetings_agenda_day_view.html b/chrono/manager/templates/chrono/manager_meetings_agenda_day_view.html index f71fa46a..a5a29ec7 100644 --- a/chrono/manager/templates/chrono/manager_meetings_agenda_day_view.html +++ b/chrono/manager/templates/chrono/manager_meetings_agenda_day_view.html @@ -2,72 +2,72 @@ {% load i18n %} {% block actions %} -{{ block.super }} -{% trans 'Month view' %} + {{ block.super }} + {% trans 'Month view' %} {% endblock %} {% block content %} -{% for period, desk_infos in view.get_timetable_infos %} + {% for period, desk_infos in view.get_timetable_infos %} -{% if forloop.first %} - - - - - {% for desk_info in desk_infos %} - - {% endfor %} - - - -{% endif %} + {% if forloop.first %} +
    {{ desk_info.desk.label }}{% if agenda.kind == 'virtual' %} ({{ desk_info.desk.agenda.label }}){% endif %}
    + + + + {% for desk_info in desk_infos %} + + {% endfor %} + + + + {% endif %} {% for desk_info in desk_infos %} - + {{ booking.get_user_block }} + {% trans "Cancel" %} + {% if booking.color %}{{ booking.color }}{% endif %} + + {% endfor %} + {% endfor %} -{% if forloop.last %} - -
    {{ desk_info.desk.label }}{% if agenda.kind == 'virtual' %} ({{ desk_info.desk.agenda.label }}){% endif %}
    {{ period|date:"TIME_FORMAT" }} + - {% if forloop.parentloop.first %} - {# opening hours on the first row #} - {% for slot in desk_info.opening_hours %} -
    {{slot.begin}} {{slot.end}}
    - {% endfor %} - {% for slot in desk_info.exceptions %} -
    {% if slot.label %}{{slot.label}}{% endif %}
    - {% endfor %} - {% endif %} + {% if forloop.parentloop.first %} + {# opening hours on the first row #} + {% for slot in desk_info.opening_hours %} +
    {{slot.begin}} {{slot.end}}
    + {% endfor %} + {% for slot in desk_info.exceptions %} +
    {% if slot.label %}{{slot.label}}{% endif %}
    + {% endfor %} + {% endif %} - {% for booking in desk_info.bookings %} -
    {{booking.event.start_datetime|date:"TIME_FORMAT"}} - {{ booking.get_user_block }} - {% trans "Cancel" %} - {% if booking.color %}{{ booking.color }}{% endif %} -
    - {% endfor %} -
    -{% endif %} + {% if forloop.last %} + + + {% endif %} -{% empty %} -
    -

    {% trans "No opening hours this day." %}

    -
    -{% endfor %} + {% empty %} +
    +

    {% trans "No opening hours this day." %}

    +
    + {% 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 %} diff --git a/chrono/manager/templates/chrono/manager_meetings_agenda_month_view.html b/chrono/manager/templates/chrono/manager_meetings_agenda_month_view.html index b856d672..d525151b 100644 --- a/chrono/manager/templates/chrono/manager_meetings_agenda_month_view.html +++ b/chrono/manager/templates/chrono/manager_meetings_agenda_month_view.html @@ -2,65 +2,65 @@ {% load i18n %} {% block actions %} -{{ block.super }} -{% trans 'Day view' %} + {{ block.super }} + {% trans 'Day view' %} {% endblock %} {% block content %} -{% for week_days in view.get_timetable_infos %} -{% if forloop.first %} - - -{% endif %} - - - {% for day in week_days.days %} - - {% endfor %} - - {% for hour in week_days.periods %} - - - {% for day in week_days.days %} - -
    {% if not day.other_month %}{{ day.date|date:"l j" }}{% endif %}
    {{ hour|date:"TIME_FORMAT" }} - {% if forloop.parentloop.first %} - {% for slot in day.infos.opening_hours %} -
    + {% for week_days in view.get_timetable_infos %} + {% if forloop.first %} + + + {% endif %} + + + {% for day in week_days.days %} + {% endfor %} + + {% for hour in week_days.periods %} + + + {% for day in week_days.days %} + + {% for slot in day.infos.booked_slots %} +
    + {{slot.booking.event.start_datetime|date:"TIME_FORMAT"}} + {{ slot.booking.get_user_block }} + {% trans "Cancel" %} + {% if not single_desk %}{{ slot.desk }}{% endif %} + {% if slot.booking.color %}{{ slot.booking.color }}{% endif %} +
    + {% endfor %} + {% endif %} + + {% endfor %} + {% endfor %} - + {% resetcycle %} + {% if forloop.last %} + +
    {% if not day.other_month %}{{ day.date|date:"l j" }}{% endif %}
    {{ hour|date:"TIME_FORMAT" }} + {% if forloop.parentloop.first %} + {% for slot in day.infos.opening_hours %} +
    + {% endfor %} - {% for slot in day.infos.exceptions %} -
    - {% endfor %} + {% for slot in day.infos.exceptions %} +
    + {% endfor %} - {% for slot in day.infos.booked_slots %} -
    - {{slot.booking.event.start_datetime|date:"TIME_FORMAT"}} - {{ slot.booking.get_user_block }} - {% trans "Cancel" %} - {% if not single_desk %}{{ slot.desk }}{% endif %} - {% if slot.booking.color %}{{ slot.booking.color }}{% endif %} -
    - {% endfor %} - {% endif %} -
    + {% endif %} + + {% empty %} +
    +

    {% trans "No opening hours this month." %}

    +
    {% endfor %} - {% resetcycle %} -{% if forloop.last %} -
    -{% endif %} -{% empty %} -
    -

    {% trans "No opening hours this month." %}

    -
    -{% 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 %} diff --git a/chrono/manager/templates/chrono/manager_meetings_agenda_settings.html b/chrono/manager/templates/chrono/manager_meetings_agenda_settings.html index f185c6ec..9e17ff3e 100644 --- a/chrono/manager/templates/chrono/manager_meetings_agenda_settings.html +++ b/chrono/manager/templates/chrono/manager_meetings_agenda_settings.html @@ -4,11 +4,11 @@ {% block extrascripts %} {{ block.super }} {% if 'display_exceptions' in request.GET %} - + {% endif %} {% endblock %} @@ -20,60 +20,60 @@ {% block agenda-extra-menu-actions %} {% if object.desk_simple_management %} -
  • {% trans 'Switch to invididual desk management' %}
  • +
  • {% trans 'Switch to invididual desk management' %}
  • {% elif agenda_is_available_for_simple_management %} -
  • {% trans 'Switch to global desk management' %}
  • +
  • {% trans 'Switch to global desk management' %}
  • {% endif %} {% endblock %} {% block agenda-settings-extra-tab-buttons %} - - {% if object.desk_simple_management %} + + {% if object.desk_simple_management %} - {% endif %} - - {% if has_resources %} + {% endif %} + + {% if has_resources %} - {% endif %} - + {% endif %} + {% endblock %} {% block agenda-settings-extra-tab-list %} -
    - {% if meeting_types %} +
    + {% if meeting_types %} - {% else %} + {% else %}
    {% blocktrans %} - This agenda doesn't have any meeting type yet. Click on the "New Meeting Type" button in - the top right of the page to add a first one. + This agenda doesn't have any meeting type yet. Click on the "New Meeting Type" button in + the top right of the page to add a first one. {% endblocktrans %}
    - {% endif %} -
    + {% endif %} +
    - {% if object.desk_simple_management %} + {% if object.desk_simple_management %} - {% endif %} + {% endif %} -
    - {% if object.prefetched_desks %} +
    + {% if object.prefetched_desks %}
    {% for desk in object.prefetched_desks %} - {% if not object.desk_simple_management or object.desk_simple_management and forloop.counter == 1 %} -
    - {% url 'chrono-manager-agenda-add-time-period' agenda_pk=object.pk pk=desk.pk as add_time_period_url %} - -
    - {% endif %} + {% if not object.desk_simple_management or object.desk_simple_management and forloop.counter == 1 %} +
    + {% url 'chrono-manager-agenda-add-time-period' agenda_pk=object.pk pk=desk.pk as add_time_period_url %} + +
    + {% endif %} {% endfor %}
    - {% else %} + {% else %}
    {% blocktrans %} - This agenda doesn't have any desk yet. Click on the "New Desk" button in - the top right of the page to add a first one. + This agenda doesn't have any desk yet. Click on the "New Desk" button in + the top right of the page to add a first one. {% endblocktrans %}
    - {% endif %} -
    + {% endif %} +
    - {% if has_resources %} + {% if has_resources %} - {% endif %} + {% endif %} -