Add breadcrumbs to purchase order and sales order pages

This commit is contained in:
Oliver 2021-10-26 22:46:30 +11:00
parent 87154c0240
commit dd5eeb7c61
2 changed files with 22 additions and 0 deletions

View File

@ -9,6 +9,17 @@
{% inventree_title %} | {% trans "Purchase Order" %}
{% endblock %}
{% block pre_content %}
<div class='navigation'>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class='breadcrumb-item'><a href='{% url "po-index" %}'>{% trans "Purchase Orders" %}</a></li>
<li class="breadcrumb-item active" aria-current="page"><a href='{% url "po-detail" order.id %}'>{{ order }}</a></li>
</ol>
</nav>
</div>
{% endblock %}
{% block thumbnail %}
<img class='part-thumb'
{% if order.supplier.image %}

View File

@ -9,6 +9,17 @@
{% inventree_title %} | {% trans "Sales Order" %}
{% endblock %}
{% block pre_content %}
<div class='navigation'>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class='breadcrumb-item'><a href='{% url "so-index" %}'>{% trans "Sales Orders" %}</a></li>
<li class="breadcrumb-item active" aria-current="page"><a href='{% url "so-detail" order.id %}'>{{ order }}</a></li>
</ol>
</nav>
</div>
{% endblock %}
{% block below_thumbnail %}
<div class='info-messages'>
{% if order.status == SalesOrderStatus.PENDING and not order.is_fully_allocated %}