From 8d329609eab7efeff0513df29f2557862c612e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 23 Dec 2019 13:32:51 +0100 Subject: [PATCH] manager: use list and icons for exception sources (#38689) --- chrono/manager/static/css/style.scss | 7 ++++ .../chrono/manager_import_exceptions.html | 32 +++++-------------- 2 files changed, 15 insertions(+), 24 deletions(-) diff --git a/chrono/manager/static/css/style.scss b/chrono/manager/static/css/style.scss index 0839a1b3..19a7ef62 100644 --- a/chrono/manager/static/css/style.scss +++ b/chrono/manager/static/css/style.scss @@ -274,3 +274,10 @@ ul#id_weekdays { width: 10em; } } + +ul.objects-list.single-links li a.link-action-icon.refresh { + margin-right: 3em; + &::before { + content: "\f021"; /* refresh */ + } +} diff --git a/chrono/manager/templates/chrono/manager_import_exceptions.html b/chrono/manager/templates/chrono/manager_import_exceptions.html index dda92e38..c774344b 100644 --- a/chrono/manager/templates/chrono/manager_import_exceptions.html +++ b/chrono/manager/templates/chrono/manager_import_exceptions.html @@ -14,35 +14,19 @@
{% if exception_sources %} - - - - - - - - - + - - - - + {% trans "remove" %} + {% endfor %} - -
{% trans "Exceptions" %}
- - {% if object.ics_filename %}{{ object|truncatechars:50 }}{% else %}{{ object|truncatechars:50 }}{% endif %} - - +
  • + {% if object.ics_filename %}{{ object|truncatechars:50 }}{% else %}{{ object|truncatechars:50 }}{% endif %} {% if object.ics_filename %} - {% trans "replace" %} + {% trans "replace" %} {% else %} - {% trans "refresh" %} + {% trans "refresh" %} {% endif %} -
  • {% trans "remove" %}
    -
    + {% endif %}

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