From df09e512f1b52cf785b039e5accef6dc4b63e1f3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 11 Sep 2018 17:44:09 +0200 Subject: Generic QA form - QA find basket form --- ishtar_common/templates/ishtar/forms/qa_base.html | 77 +++++++++++++++++++++++ ishtar_common/templates/ishtar/forms/qa_form.html | 33 ++++++++++ ishtar_common/templates/ishtar/qa_form.html | 76 ---------------------- 3 files changed, 110 insertions(+), 76 deletions(-) create mode 100644 ishtar_common/templates/ishtar/forms/qa_base.html create mode 100644 ishtar_common/templates/ishtar/forms/qa_form.html delete mode 100644 ishtar_common/templates/ishtar/qa_form.html (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/forms/qa_base.html b/ishtar_common/templates/ishtar/forms/qa_base.html new file mode 100644 index 000000000..ee4c242b7 --- /dev/null +++ b/ishtar_common/templates/ishtar/forms/qa_base.html @@ -0,0 +1,77 @@ +{% load i18n inline_formset table_form %} + + + + + diff --git a/ishtar_common/templates/ishtar/forms/qa_form.html b/ishtar_common/templates/ishtar/forms/qa_form.html new file mode 100644 index 000000000..c843dbd2d --- /dev/null +++ b/ishtar_common/templates/ishtar/forms/qa_form.html @@ -0,0 +1,33 @@ +{% extends "ishtar/forms/qa_base.html" %} +{% load i18n inline_formset table_form %} + +{% block main_form %} + {% for error in form.non_field_errors %} +

{{ error }}

+ {% endfor %} + {% bs_form form %} + + {% if confirm %} + +

{% trans "Modified items" %}

+ +

{% trans "Modification" %}

+ + {% for field in form %} + {% if field.value %} + + + + + {% endif %} + {% endfor %} +
{{field.label}}{% trans ":" %} {% if field.field.rendered_value %} + {{ field.field.rendered_value }} + {% else %} + {{ field.value }} + {% endif %} +
+ {% endif %} +{% endblock %} diff --git a/ishtar_common/templates/ishtar/qa_form.html b/ishtar_common/templates/ishtar/qa_form.html deleted file mode 100644 index fe373ed57..000000000 --- a/ishtar_common/templates/ishtar/qa_form.html +++ /dev/null @@ -1,76 +0,0 @@ -{% load i18n inline_formset table_form %} - - - - - -- cgit v1.2.3