From f7635fb1c01c7e29eafa029a4e24eb8dd1a55067 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 22 Apr 2021 12:39:48 +0200 Subject: [PATCH] reording form --- .../part/templates/part/part_pricing.html | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/InvenTree/part/templates/part/part_pricing.html b/InvenTree/part/templates/part/part_pricing.html index 9e29074e39..e046b5264c 100644 --- a/InvenTree/part/templates/part/part_pricing.html +++ b/InvenTree/part/templates/part/part_pricing.html @@ -2,11 +2,8 @@ {% load i18n %} {% load inventree_extras %} + {% block pre_form_content %} - -{% settings_value "INVENTREE_DEFAULT_CURRENCY" as currency %} -{% settings_value "PART_SHOW_GRAPH" as show_graph %} -
{% blocktrans %}Pricing information for:
{{part}}.{% endblocktrans %}
@@ -81,6 +78,19 @@ {% endif %} + {% if min_unit_buy_price or min_unit_bom_price %} + {% else %} +
+ {% trans 'No pricing information is available for this part.' %} +
+ {% endif %} +
+{% endblock %} + +{% block post_form_content %} + {% settings_value "INVENTREE_DEFAULT_CURRENCY" as currency %} + {% settings_value "PART_SHOW_GRAPH" as show_graph %} + {% if show_graph and price_history %}

{% trans 'Stock Pricing' %}

{% if price_history|length > 1 %} @@ -188,14 +198,4 @@ {% endif %} {% endif %} - -{% if min_unit_buy_price or min_unit_bom_price %} -{% else %} -
- {% trans 'No pricing information is available for this part.' %} -
-{% endif %} - -
- {% endblock %} \ No newline at end of file