summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/import_table.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-08-08 17:56:48 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-04-16 16:38:32 +0200
commitdf7044e23e0123558124a600e5b470ed2d537135 (patch)
treee2c5d2b1b017bc752674c6a6a67ac3843ae7da8d /ishtar_common/templates/ishtar/import_table.html
parent6e5740c977ea4eb425b68b5cacb982916a43ba73 (diff)
downloadIshtar-df7044e23e0123558124a600e5b470ed2d537135.tar.bz2
Ishtar-df7044e23e0123558124a600e5b470ed2d537135.zip
✨ Imports groups: archive_required field - automatically create related imports on group creation - adapt import list
Diffstat (limited to 'ishtar_common/templates/ishtar/import_table.html')
-rw-r--r--ishtar_common/templates/ishtar/import_table.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/import_table.html b/ishtar_common/templates/ishtar/import_table.html
index aec59babc..cf33341d1 100644
--- a/ishtar_common/templates/ishtar/import_table.html
+++ b/ishtar_common/templates/ishtar/import_table.html
@@ -99,6 +99,49 @@ $("#import-list").find('input').prop('disabled', true);
</td>
</tr>
{% endif %}
+ {% if not import.importer_type.type_label %} {# group #}
+ {% for sub in import.imports.all %}
+ <tr>
+ <td></td>
+ <td>
+ {{sub.importer_type}}
+ </td>
+ <td>
+ {% if sub.imported_file %}
+ <a href='{{sub.imported_file.url}}'>{% trans "Source file" %}</a>
+ {% endif %}
+ </td>
+ <td>
+ {% if sub.imported_images %}
+ <a href="{{ sub.imported_images.url }}">{% trans "Media file" %}</a>
+ {% else %}
+ &ndash;
+ {% endif %}
+ </td>
+ <td>
+ </td>
+ <td>
+ {{sub.status}}
+ </td>
+ <td>
+ </td>
+ <td>
+ {% if sub.need_matching %}
+ <a href='{% url "import_link_unmatched" sub.pk %}'>{% trans "Match"%}</a>
+ {% endif %}
+ </td>
+ <td style="white-space: nowrap;">{% if sub.error_file %}
+ <i class="text-danger fa fa-exclamation-triangle" aria-hidden="true"></i> <a href='{{sub.error_file.url}}'>{% trans "File" context "not a directory" %}</a>
+ {% endif %}</td>
+ <td>{% if sub.result_file %}
+ <a href='{{sub.result_file.url}}'>{% trans "File" context "not a directory" %}</a>
+ {% endif %}</td>
+ <td>{% if sub.match_file %}
+ <a href='{{sub.match_file.url}}'>{% trans "File" context "not a directory" %}</a>
+ {% endif %}</td>
+ </tr>
+ {% endfor %}
+ {% endif %}
{% endfor %}
</table>
{% endif %}