{% load i18n link_to_window window_header window_field window_tables %} {% 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 %} {% with current_import=item %}{% with object=item %} {% with imported_list=object.get_all_imported %} {% with updated_list=object.get_all_updated %} {% if output != "ODT" and output != "PDF" %} {% endif %}
{% field_flex "Name" item.name %} {% field_flex "Type" item.importer_type %}
  {{item.user}}
  {{item.creation_date|date:"DATE_FORMAT"}} {{item.creation_date|time:"H:i"}} {% if item.end_date %}
  {{item.end_date|date:"DATE_FORMAT"}} {{item.end_date|time:"H:i"}}{% endif %}
{% field_flex_detail "Import group" item.group %} {% if item.imported_file %}
{% with file_label=source_label logo='fa fa-fw fa-file-text-o' file_type='source' file=item.imported_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
{% if item.get_imported_images %}
{% with file_label=media_label logo='fa fa-fw fa-file-image-o' file_type='' file=item.get_imported_images %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
{% endif %} {% elif item.archive_file %} {% endif %} {% if item.error_file %}
{% with file_label=error_label logo='text-danger fa fa-fw fa-exclamation-triangle' file_type='error' file=item.error_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
{% endif %} {% if item.result_file %}
{% with file_label=result_label logo='fa fa-fw fa-th' file_type='result' file=item.result_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
{% endif %} {% if item.match_file %}
{% with file_label=match_label logo='fa fa-fw fa-arrows-h' file_type='match' file=item.match_file %} {% include "ishtar/blocks/import_table_buttons_view.html" %} {% endwith %}
{% endif %} {% with import_list=item.import_list %}{% if import_list %}
{% trans "Associated imports" %}
{% for import in import_list %}{{import|simple_link_to_window}} {{import}}
{% endfor %}
{% endif %}{% endwith %} {% field_flex _("Number of header lines") item.skip_lines %}
{% with pre_import_items=item.pre_import_items %}{% if pre_import_items %}

{% trans "Pre-import values "%}

{% for k, v in pre_import_items %}
{{k}}
{{v}}
{% endfor %}
{% endif %}{% endwith %}
{% if imported_list %}
{% for accessor, imported in imported_list %} {% include "ishtar/import_associated_item.html" %} {% endfor %} {% comment %}
{% endcomment %}
{% endif %} {% if updated_list %}
{% for accessor, imported in updated_list %} {% include "ishtar/import_associated_item.html" %} {% endfor %} {% comment %}
{% endcomment %}
{% endif %}
{% endwith %}{% endwith %}{% endwith %}{% endwith %}