From ff9cb4b4d71d0df8d0b0f0a96c4a5e45a02ad904 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 10 Aug 2023 18:13:55 +0200 Subject: 🚸 imports: auto-refresh import state and progress MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templates/ishtar/import_table.html | 69 +++++++++++++++--------- 1 file changed, 43 insertions(+), 26 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/import_table.html b/ishtar_common/templates/ishtar/import_table.html index 138dbba65..f027e07c5 100644 --- a/ishtar_common/templates/ishtar/import_table.html +++ b/ishtar_common/templates/ishtar/import_table.html @@ -1,21 +1,36 @@ {% load i18n l10n inline_formset %} {% localize off %}

{{page_name}}

@@ -37,7 +52,7 @@ $("#import-list").find('input').prop('disabled', true); {% trans "Match" %} {% for import in object_list %} - + {{import.name|default:"-"}} @@ -61,11 +76,13 @@ $("#import-list").find('input').prop('disabled', true); {{import.creation_date|date:"DATE_FORMAT"}} {{import.creation_date|time:"H:i"}} - {{import.user}} - + {{import.status}} - {% for action, lbl in import.get_actions %} @@ -87,11 +104,12 @@ $("#import-list").find('input').prop('disabled', true); {% trans "File" context "not a directory" %} {% endif %} - {% if import.importer_type.type_label and import.state == 'IP' or import.state == 'PP' and import.current_line %} - + {% if import.importer_type.type_label %} + {# only for even and odd style #} +
-
 {{import.current_line}} / {{import.number_of_line}}
@@ -101,7 +119,7 @@ $("#import-list").find('input').prop('disabled', true); {% endif %} {% if not import.importer_type.type_label %} {# group #} {% for sub in import.import_list %} - + {{sub.importer_type}} {% if sub.imported_file %} @@ -113,7 +131,7 @@ $("#import-list").find('input').prop('disabled', true); {% endif %} - {{sub.status}} + {{sub.status}} {% if sub.need_matching %} {% trans "Match"%} @@ -128,18 +146,17 @@ $("#import-list").find('input').prop('disabled', true); {% trans "File" context "not a directory" %} {% endif %} - {% if sub.state == 'IP' or sub.state == 'PP' %} - + {# only for even and odd style #} +
-
 {{sub.current_line}} / {{sub.number_of_line}}
- {% endif %} {% endfor %} {% endif %} {% endfor %} -- cgit v1.2.3