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 --- ishtar_common/templates/ishtar/import_table.html | 97 +++++++++++------------- 1 file changed, 44 insertions(+), 53 deletions(-) (limited to 'ishtar_common') 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 #} -- cgit v1.2.3