Separate "completed shipments" onto its own tab

This commit is contained in:
Oliver 2021-11-26 10:50:43 +11:00
parent 68e2b0850b
commit d3b9adc87a
2 changed files with 11 additions and 4 deletions

View File

@ -37,8 +37,8 @@
</div>
</div>
<div class='panel panel-hidden' id='panel-order-shipments'>
{% if order.is_pending %}
<div class='panel panel-hidden' id='panel-order-shipments'>
<div class='panel-heading'>
<div class='d-flex flex-row'>
<h4>{% trans "Pending Shipments" %}</h4>
@ -57,7 +57,10 @@
{% endif %}
<table class='table table-striped table-condensed' id='pending-shipments-table' data-toolbar='#pending-shipment-toolbar'></table>
</div>
</div>
{% endif %}
<div class='panel panel-hidden' id='panel-order-shipments-complete'>
<div class='panel-heading'>
<h4>{% trans "Completed Shipments" %}</h4>
</div>

View File

@ -4,8 +4,12 @@
{% trans "Line Items" as text %}
{% include "sidebar_item.html" with label='order-items' text=text icon="fa-list-ol" %}
{% trans "Shipments" as text %}
{% include "sidebar_item.html" with label='order-shipments' text=text icon="fa-truck" %}
{% if order.is_pending %}
{% trans "Pending Shipments" as text %}
{% include "sidebar_item.html" with label='order-shipments' text=text icon="fa-truck-loading" %}
{% endif %}
{% trans "Completed Shipments" as text %}
{% include "sidebar_item.html" with label='order-shipments-complete' text=text icon="fa-truck" %}
{% trans "Build Orders" as text %}
{% include "sidebar_item.html" with label='order-builds' text=text icon="fa-tools" %}
{% trans "Attachments" as text %}