mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Split table of customer orders into separate template from customer orders index page
This commit is contained in:
parent
121315f15e
commit
6434bfc24a
@ -0,0 +1,14 @@
|
|||||||
|
<table class="table table-striped">
|
||||||
|
<tr>
|
||||||
|
<th>Internal Ref</th>
|
||||||
|
<th>Customer</th>
|
||||||
|
<th>Customer Ref</th>
|
||||||
|
</tr>
|
||||||
|
{% for order in customer_orders %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ order.internal_ref }}</td>
|
||||||
|
<td>{{ order.customer }}</td>
|
||||||
|
<td>{{ order.customer_ref }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
@ -5,21 +5,7 @@
|
|||||||
|
|
||||||
{% if customer_orders.all|length > 0 %}
|
{% if customer_orders.all|length > 0 %}
|
||||||
<h4>Customer Orders</h4>
|
<h4>Customer Orders</h4>
|
||||||
<table class="table table-striped">
|
{% include "customer_orders/customer_orders_list.html" with customer_orders=customer_orders %}
|
||||||
<tr>
|
|
||||||
<th>Internal Ref</th>
|
|
||||||
<th>Customer</th>
|
|
||||||
<th>Customer Ref</th>
|
|
||||||
</tr>
|
|
||||||
{% for order in customer_orders %}
|
|
||||||
<tr>
|
|
||||||
<td>{{ order.internal_ref }}</td>
|
|
||||||
<td>{{ order.customer }}</td>
|
|
||||||
<td>{{ order.customer_ref }}</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</table>
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user