summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/formset_import_match.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/ishtar/formset_import_match.html')
-rw-r--r--ishtar_common/templates/ishtar/formset_import_match.html55
1 files changed, 55 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/formset_import_match.html b/ishtar_common/templates/ishtar/formset_import_match.html
new file mode 100644
index 000000000..f37938771
--- /dev/null
+++ b/ishtar_common/templates/ishtar/formset_import_match.html
@@ -0,0 +1,55 @@
+{% extends "base.html" %}
+{% load i18n %}
+{% block content %}
+<h2>{{page_name}}</h2>
+<p><a href="{% url 'current_imports' %}">{% trans "Back to import list" %}</a></p>
+<div class='form' id='global-vars'>
+<form action="." method="post">{% csrf_token %}
+
+ {% if extra_formset.non_form_errors %}
+ <div class='errors'>{{extra_formset.non_form_errors.as_ul}}</div>{% endif %}
+
+ {{ formset.management_form }}
+ {% for hidden in frm.hidden_fields %} {{ hidden }} {% endfor %}
+
+ <div id="{{formset.prefix}}">
+ {% for frm in formset %}{% ifchanged frm.target.value %}
+ {# <table> #}{% if not forloop.first%}</table>{% endif %}
+ <table class='clean-table'>
+ <caption>{{ frm.target.field.choices.0.1 }}</caption>
+ <tr>
+ <th>{% trans "Key" %}</th>
+ <th>{% trans "Value" %}</th>
+ <th>{% trans "For" %}</th>
+ </tr>
+ {% endifchanged %}
+ <tr>
+ <td>
+ {{frm.id}}
+ {{frm.target}}
+ {{frm.key}}
+ </td>
+ <td>
+ {{frm.value}}
+ </td>
+ <td>
+ {{frm.remember}}
+ </td>
+ </tr>
+ {% if forloop.last %}
+ </table>{% endif %}
+ {% endfor %}
+
+ {% if frm.errors %}<ul>{% for error in frm.errors.values %}
+ <li>{{error}}</li>{% endfor%}</ul>{% endif %}
+ {% for field in frm %}
+ {{field}}
+ {%endfor%}
+
+ </div>
+
+<input type="submit" value="{% trans 'Validate' %}"/>
+</form>
+</div>
+<p><a href="{% url 'current_imports' %}">{% trans "Back to import list" %}</a></p>
+{% endblock %}