From a7e8a1c1bd3a73fcd9a9d4528cb15ccd9c901bc0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 11 Sep 2023 19:00:28 +0200 Subject: 💄 reorganize import tables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog/en/changelog_2022-06-15.md | 4 + changelog/fr/changelog_2023-01-25.md | 4 + ishtar_common/templates/ishtar/import_table.html | 97 +++++++++++------------- scss/custom.scss | 6 +- 4 files changed, 57 insertions(+), 54 deletions(-) diff --git a/changelog/en/changelog_2022-06-15.md b/changelog/en/changelog_2022-06-15.md index c25e6b6dc..e178ff7b0 100644 --- a/changelog/en/changelog_2022-06-15.md +++ b/changelog/en/changelog_2022-06-15.md @@ -3,6 +3,10 @@ v4.0.XX - 2099-12-31 ### Features/improvements ### - imports form: reorganisation of field order +- import table : + - automatic progress refresh + - reorganization of fields + - improved presentation v4.0.75 - 2024-04-16 -------------------- diff --git a/changelog/fr/changelog_2023-01-25.md b/changelog/fr/changelog_2023-01-25.md index 405644985..2f23ed826 100644 --- a/changelog/fr/changelog_2023-01-25.md +++ b/changelog/fr/changelog_2023-01-25.md @@ -3,6 +3,10 @@ v4.0.XX - 2099-12-31 ### Fonctionnalités/améliorations ### - formulaire d'imports: réorganisation de l'ordre des champs +- table des imports : + - raffrachissement automatique de l'avancement + - réorganisation des champs + - amélioration de la présentation v4.0.75 - 2024-04-16 -------------------- diff --git a/ishtar_common/templates/ishtar/import_table.html b/ishtar_common/templates/ishtar/import_table.html index f027e07c5..f066bef2a 100644 --- a/ishtar_common/templates/ishtar/import_table.html +++ b/ishtar_common/templates/ishtar/import_table.html @@ -41,41 +41,23 @@ {% trans "Name" %} {% trans "Type" %} - {% trans "File" context "file" %} - {% trans "Media" %} - {% trans "Creation" %} {% trans "Status" %} {% trans "Action" %} - {% trans "Unmatched items" %} - {% trans "Error" %} - {% trans "Control" %} - {% trans "Match" %} + {% trans "Files" context "file" %} + {% trans "Pré-import form / matching" %} + {% trans "Diagnostic files" %} {% for import in object_list %} - + - {{import.name|default:"-"}} + {{import.name|default:"-"}}
+   {{import.creation_date|date:"DATE_FORMAT"}} {{import.creation_date|time:"H:i"}} - {% if import.end_date %}{{import.end_date|date:"DATE_FORMAT"}} {{import.end_date|time:"H:i"}}{% endif %}
+   {{import.user}} {{import.importer_type}} ({% if import.importer_type.type_label %}{% trans import.importer_type.type_label %}{% else %}{% trans "Group" %}{% endif %}) - - {% if import.imported_file %} - {% trans "Source file" %} - {% elif import.archive_file %} - {% trans "Archive" context "name" %} - {% endif %} - - - {% if import.imported_images %} - {% trans "Media file" %} - {% else %} - – - {% endif %} - - - {{import.creation_date|date:"DATE_FORMAT"}} {{import.creation_date|time:"H:i"}} - {{import.user}} - {{import.status}} @@ -89,20 +71,31 @@ {% endfor%} + + {% if import.imported_file %} + {% trans "Source" %} + {% if import.imported_images %} + - {% trans "Media" %} + {% endif %} + {% elif import.archive_file %} + {% trans "Archive" context "name" %} + {% endif %} + {% if import.need_matching %} - {% trans "Match"%} + {% trans "Make match" %} {% endif %} {% if import.error_file %} - {% trans "File" context "not a directory" %} - {% endif %} - {% if import.result_file %} - {% trans "File" context "not a directory" %} - {% endif %} - {% if import.match_file %} - {% trans "File" context "not a directory" %} - {% endif %} + {% trans "Error" %} +
{% endif %} + {% if import.result_file %} + {% trans "Result" %} +
{% endif %} + {% if import.match_file %} + {% trans "Match" %} + {% endif %} + {% if import.importer_type.type_label %} {# only for even and odd style #} @@ -122,29 +115,27 @@ {{sub.importer_type}} - {% if sub.imported_file %} - {% trans "Source file" %} - {% endif %} - {% if sub.imported_images %} - {% trans "Media file" %} - {% else %} – - {% endif %} - - {{sub.status}} + {% if sub.imported_file %} + {% trans "Source" %} + {% if sub.imported_images %} + - {% trans "Media" %} + {% endif %} + {% endif %} {% if sub.need_matching %} - {% trans "Match"%} + {% trans "Make match" %} {% endif %} {% if sub.error_file %} - {% trans "File" context "not a directory" %} - {% endif %} - {% if sub.result_file %} - {% trans "File" context "not a directory" %} - {% endif %} - {% if sub.match_file %} - {% trans "File" context "not a directory" %} - {% endif %} + {% trans "Error" %} +
{% endif %} + {% if sub.result_file %} + {% trans "Result" %} +
{% endif %} + {% if sub.match_file %} + {% trans "Match" %} + {% endif %} + {# only for even and odd style #} diff --git a/scss/custom.scss b/scss/custom.scss index 1c81d2f75..1883798a2 100644 --- a/scss/custom.scss +++ b/scss/custom.scss @@ -669,7 +669,11 @@ div#validation-bar{ } .errorlist { - color: darken(red, 20%);; + color: darken(red, 20%); +} + +.import-row-error { + background-color: lighten(red, 40%); } /* context menu */ -- cgit v1.2.3