diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/import_step_by_step.html')
-rw-r--r-- | ishtar_common/templates/ishtar/import_step_by_step.html | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/import_step_by_step.html b/ishtar_common/templates/ishtar/import_step_by_step.html new file mode 100644 index 000000000..4d7512de1 --- /dev/null +++ b/ishtar_common/templates/ishtar/import_step_by_step.html @@ -0,0 +1,50 @@ +{% extends "base.html" %} +{% load i18n inline_formset %} + +{% block content %} +<h2>{% trans "Import step by step" %}</h2> +<h3>{{import.name}} – {% trans "line " %} {{line_number_displayed}}</h3> +{% if errors %} +<div class="alert alert-danger" role="alert"> + <p>{% trans "The following error(s) has been encountered while parsing the source file:" %}</p> + <ul>{% for error in errors %} + <li>{{error}}</li> + {% endfor %}</ul> +</div> + +{% if values %} +<table class="table table-striped"> + {% for header, value in values %} + <tr> + <th>{{header}}</th> + <td>{{value}}</td> + </tr> + {% endfor %} +</table> +{% endif %} + +{% else %} + +<div> + <table class="table table-striped"> + <tr> + <th>{% trans "Column number" %}</th> + <th>{% trans "Name" %}</th> + <th>{% trans "Raw CSV value" %}</th> + <th>{% trans "Current value" %}</th> + <th>{% trans "New value" %}</th> + {% comment %}<th>{% trans "Merged value" %}</th>{% endcomment %} + </tr> + {% for idx, name, raw, interpreted in values %}<tr> + <td>{{idx}}</td> + <td>{{name|safe}}</td> + <td>{{raw}}</td> + <td></td> + <td>{{interpreted}}</td> + </tr>{% endfor %} + </table> + +</div> +{% endif %} +{% endblock %} + |