|
|
@@ -0,0 +1,29 @@ |
|
|
|
{% extends "base.html.twig" %} |
|
|
|
{% block main%} |
|
|
|
<a href="/order/{id}/create"> Create Order<a/> |
|
|
|
<h1> Order list for {{clientOrders.firstname}} {{clientOrders.lastname}}</h1> |
|
|
|
<hr/> |
|
|
|
<table> |
|
|
|
<tr> |
|
|
|
<th>Id</th> |
|
|
|
<th>Reference</th> |
|
|
|
<th>Customer ID</th> |
|
|
|
<th>Subtotal</th> |
|
|
|
<th>VAT</th> |
|
|
|
<th>Total</th> |
|
|
|
</tr> |
|
|
|
{% for client in clientOrders%} |
|
|
|
<tr> |
|
|
|
<td><a href="orders/{{order.id}}">{{order.id}}</td> |
|
|
|
<td>{{client.id}}</td> |
|
|
|
<td>{{client.reference}}</td> |
|
|
|
<td>{{client.customerId}}</td> |
|
|
|
<td>>{{client.subtotal}}</td> |
|
|
|
<td>>{{client.vat}}</td> |
|
|
|
<td>>{{client.total}}</td> |
|
|
|
</tr> |
|
|
|
{% endfor%} |
|
|
|
</table> |
|
|
|
<hr/> |
|
|
|
<a href="/customers">Back to customer list</a> <a href="/orders">Back to order list</a> |
|
|
|
{% endblock %} |