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