From c996469e842ef3541f5b1290d2541dd6d2f2844e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 3 Sep 2020 12:30:35 +0200 Subject: Document QA: packaging - fix QA for search and edit --- .../ishtar/forms/qa_document_packaging.html | 32 ++++++++++++++++++++++ ishtar_common/templates/ishtar/sheet_document.html | 4 +-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 ishtar_common/templates/ishtar/forms/qa_document_packaging.html (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/forms/qa_document_packaging.html b/ishtar_common/templates/ishtar/forms/qa_document_packaging.html new file mode 100644 index 000000000..02f60e6c0 --- /dev/null +++ b/ishtar_common/templates/ishtar/forms/qa_document_packaging.html @@ -0,0 +1,32 @@ +{% extends "ishtar/forms/qa_base.html" %} +{% load i18n inline_formset table_form %} + +{% block main_form %} + {% if form.non_field_errors %} + + {% endif %} + +

{% trans "Documents" %}

+ + +

{% trans "Packaging" %}

+ {% for hidden in form.hidden_fields %} + {{hidden}} + {% if hidden.errors %}
+ {{ hidden.errors }} +
{% endif %} + {% endfor %} +
+ {% with form.container as field %} + {% include "blocks/bs_field_snippet.html" %} + {% endwith %} + {% with form.container_to_change as field %} + {% include "blocks/bs_field_snippet.html" %} + {% endwith %} +
+{% endblock %} + diff --git a/ishtar_common/templates/ishtar/sheet_document.html b/ishtar_common/templates/ishtar/sheet_document.html index 0212b1695..598de5f76 100644 --- a/ishtar_common/templates/ishtar/sheet_document.html +++ b/ishtar_common/templates/ishtar/sheet_document.html @@ -83,8 +83,8 @@ {% if item.container or item.container_ref or item.item_number != 1 or item.duplicate %}

{% trans "Container" %}

- {% field_flex_detail "Container" item.container %} - {% field_flex_detail "Reference container" item.container_ref %} + {% field_flex_detail "Container" item.container 2 %} + {% field_flex_detail "Reference container" item.container_ref 2 %} {% if item.item_number != 1 %}{% field_flex "Item number" item.item_number %}{% endif %} {% if item.duplicate %}{% field_flex "Has a duplicate" item.duplicate %}{% endif %} {% endif %} -- cgit v1.2.3