{% load i18n l10n inline_formset %} {% trans "Source" as source_label %} {% trans "Media" as media_label %} {% trans "Result" as result_label %} {% trans "Error" as error_label %} {% trans "Match" as match_label %} {% localize off %}

{{page_name}}

{% if not object_list %}

{% trans "No pending imports." %}

{% else %} {% if not ARCHIVE_PAGE %}{% endif %} {% for import in object_list %} {% with current_import=import %} {% if not ARCHIVE_PAGE %} {% endif %} {% if import.importer_type.type_label %} {# only for even and odd style #} {% endif %} {% endwith %} {% if not import.importer_type.type_label and not ARCHIVE_PAGE %} {# group #} {% for sub in import.import_list %} {% with current_import=sub %} {% if not ARCHIVE_PAGE %} {% endif %} {# only for even and odd style #} {% endwith %} {% endfor %} {% endif %} {% endfor %}
{% trans "Name" %} {% trans "Type" %} {% trans "Status" %} {% trans "Action" %} {% trans "Files" context "file" %}{% trans "Pré-import form / matching" %} {% trans "Diagnostic files" %}
  • {{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 %}) {{import.status}} {% if import.action_list %} {% else %} – {% endif %}
    {% if import.get_imported_values %}
  • {% with file_label=source_label logo='fa fa-fw fa-file-text-o' file_type='source' file=import.imported_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
  • {% if import.get_imported_images %}
  • {% with file_label=media_label logo='fa fa-fw fa-file-image-o' file_type='' file=import.get_imported_images %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
  • {% endif %} {% elif import.archive_file %}
  • {% trans "Archive" context "name" %}
  • {% endif %}
    {% if import.error_file %}
  • {% with file_label=error_label logo='text-danger fa fa-fw fa-exclamation-triangle' file_type='error' file=import.error_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
  • {% endif %} {% if import.result_file %}
  • {% with file_label=result_label logo='fa fa-fw fa-th' file_type='result' file=import.result_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
  • {% endif %} {% if import.match_file %}
  • {% with file_label=match_label logo='fa fa-fw fa-arrows-h' file_type='match' file=import.match_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
  • {% endif %}
{{sub.importer_type}} {{sub.status}}
    {% if sub.get_imported_values %}
  • {% with file_label=source_label logo='fa fa-fw fa-file-text-o' file_type='source' file=sub.imported_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
  • {% endif %} {% if sub.get_imported_images %}
  • {% with file_label=media_label logo='fa fa-fw fa-file-image-o' file_type='' file=sub.get_imported_images %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
  • {% endif %}
    {% if sub.error_file %}
  • {% with file_label=error_label logo='text-danger fa fa-fw fa-exclamation-triangle' file_type='error' file=sub.error_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
  • {% endif %} {% if sub.result_file %}
  • {% with file_label=result_label logo='fa fa-fw fa-th' file_type='result' file=sub.result_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
  • {% endif %} {% if sub.match_file %}
  • {% with file_label=match_label logo='fa fa-fw fa-arrows-h' file_type='match' file=sub.match_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
  • {% endif %}
{% endif %}
{% endlocalize %}