From e7d343ffe18acf6f41d213d9bec51777cdc6b079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 11 Feb 2018 10:48:37 +0100 Subject: [PATCH] manager: style sections (#21778) --- .../templates/chrono/manager_agenda_settings.html | 42 ++++++++++++++-------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/chrono/manager/templates/chrono/manager_agenda_settings.html b/chrono/manager/templates/chrono/manager_agenda_settings.html index ff8ba10..1148faf 100644 --- a/chrono/manager/templates/chrono/manager_agenda_settings.html +++ b/chrono/manager/templates/chrono/manager_agenda_settings.html @@ -28,9 +28,10 @@ {% block content %} {% if object.kind == "events" %} +

{% trans "Events" %}

-{% if object.event_set.count %}
+{% if object.event_set.count %}
{% endif %} +
+ {% endif %} {% if object.kind == "meetings" %} +

{% trans 'Meeting Types' %}

-{% if object.meetingtype_set.count %}
+{% if object.meetingtype_set.count %} +{% 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. + {% endblocktrans %} +
+{% endif %} +
+

{% trans 'Time Periods' %}

+
{% if object.desk_set.count %}
{% for desk in object.desk_set.all %} @@ -135,39 +149,37 @@ {% endfor %}
{% 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. {% endblocktrans %}
{% endif %} - -{% 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. - {% endblocktrans %}
-{% endif %} - +
{% endif %} +

{% trans "Permissions" %}

- +
  • {% trans "Edit Role:" %} {% if agenda.edit_role %}{{ agenda.edit_role }}{% else %}{% trans "undefined" %}{% endif %}
  • {% trans "View Role:" %} {% if agenda.view_role %}{{ agenda.view_role }}{% else %}{% trans "undefined" %}{% endif %}
+
+
+

{% trans "Booking Delays" %}

- +
  • {% trans "Minimal booking delay:" %} {{ agenda.minimal_booking_delay }} {% trans "days" %}
  • {% trans "Maximal booking delay:" %} {{ agenda.maximal_booking_delay }} {% trans "days" %}
+
+
{% endblock %} -- 2.16.1