diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-15 09:52:32 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-27 17:52:07 +0200 |
| commit | 9e83c044636aee77c2f8f149ba2356674b071f8f (patch) | |
| tree | a4071ff51a08618ad9d8c3f4fec1d0dc7869ca11 /ishtar_common/templates | |
| parent | 3fbf4471d52727750185f21052d777c119a50de0 (diff) | |
| download | Ishtar-9e83c044636aee77c2f8f149ba2356674b071f8f.tar.bz2 Ishtar-9e83c044636aee77c2f8f149ba2356674b071f8f.zip | |
Step by step import - WIP - refs #3975
Diffstat (limited to 'ishtar_common/templates')
| -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 %} + |
