reording form

This commit is contained in:
Matthias 2021-04-22 12:39:48 +02:00
parent 80d46fb3ab
commit f7635fb1c0

View File

@ -2,11 +2,8 @@
{% load i18n %} {% load i18n %}
{% load inventree_extras %} {% load inventree_extras %}
{% block pre_form_content %} {% block pre_form_content %}
{% settings_value "INVENTREE_DEFAULT_CURRENCY" as currency %}
{% settings_value "PART_SHOW_GRAPH" as show_graph %}
<div class='alert alert-info alert-block'> <div class='alert alert-info alert-block'>
{% blocktrans %}Pricing information for:<br>{{part}}.{% endblocktrans %} {% blocktrans %}Pricing information for:<br>{{part}}.{% endblocktrans %}
</div> </div>
@ -81,6 +78,19 @@
</table> </table>
{% endif %} {% endif %}
{% if min_unit_buy_price or min_unit_bom_price %}
{% else %}
<div class='alert alert-danger alert-block'>
{% trans 'No pricing information is available for this part.' %}
</div>
{% endif %}
<hr>
{% 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 %} {% if show_graph and price_history %}
<h4>{% trans 'Stock Pricing' %}</h4> <h4>{% trans 'Stock Pricing' %}</h4>
{% if price_history|length > 1 %} {% if price_history|length > 1 %}
@ -188,14 +198,4 @@
</div> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if min_unit_buy_price or min_unit_bom_price %}
{% else %}
<div class='alert alert-danger alert-block'>
{% trans 'No pricing information is available for this part.' %}
</div>
{% endif %}
<hr>
{% endblock %} {% endblock %}