blob: 4d7512de140f2c62cb4b1eba126c1e53b6650110 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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 %}
|