From 5bf4c2c3dcfb1008d189d2802e49a229f16823bb Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 18 Jan 2018 19:51:03 +0100 Subject: Improve import list --- ishtar_common/templates/base.html | 1 + ishtar_common/templates/ishtar/import_list.html | 36 +++++++++++++++++----- .../templates/ishtar/wizard/wizard_person.html | 2 +- 3 files changed, 30 insertions(+), 9 deletions(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index db39ecc8e..ee318fa7c 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -65,6 +65,7 @@ + {% block pre_container %}{% endblock %}
{% block top_content %}{% endblock %}
diff --git a/ishtar_common/templates/ishtar/import_list.html b/ishtar_common/templates/ishtar/import_list.html index c72c86d10..ee466ad24 100644 --- a/ishtar_common/templates/ishtar/import_list.html +++ b/ishtar_common/templates/ishtar/import_list.html @@ -1,13 +1,17 @@ {% extends "base.html" %} {% load i18n inline_formset %} + +{% block pre_container %} +
{% csrf_token %} +{% endblock %} + {% block content %}

{{page_name}}

{% if not object_list %}

{% trans "No pending imports." %}

{% else %} -{% csrf_token %} - +
@@ -15,6 +19,10 @@ + + + + {% for import in object_list %} @@ -43,24 +51,36 @@ {% endfor %}
{% trans "Name" %} {% trans "Type" %}{% trans "Creation" %} {% trans "Status" %} {% trans "Action" %}{% trans "Unmatched items" %}{% trans "Error" %}{% trans "Control" %}{% trans "Match" %}
{% if import.need_matching %} - {% trans "Link unmatched items" %} + {% trans "Match"%} {% endif %} {% if import.error_file %} - {% trans "Error file" %} + {% trans "File" context "not a directory" %} {% endif %} {% if import.result_file %} - {% trans "Control file" %} + {% trans "File" context "not a directory" %} {% endif %} {% if import.match_file %} - {% trans "Match file" %} + {% trans "File" context "not a directory" %} {% endif %}
- - {% endif %}
{% endblock %} +{% block footer %} + + +{% endblock %} diff --git a/ishtar_common/templates/ishtar/wizard/wizard_person.html b/ishtar_common/templates/ishtar/wizard/wizard_person.html index 2446c06cc..fc15dbfad 100644 --- a/ishtar_common/templates/ishtar/wizard/wizard_person.html +++ b/ishtar_common/templates/ishtar/wizard/wizard_person.html @@ -19,9 +19,9 @@ {% trans "Identity" %}
- {% bs_field wizard.form.title %} {% bs_field wizard.form.surname 1 %} {% bs_field wizard.form.name 1 %} + {% bs_field wizard.form.title %} {% bs_field wizard.form.raw_name %} {% bs_field wizard.form.email %} {% bs_field wizard.form.attached_to %} -- cgit v1.2.3