{% extends "base.html" %}

{% block breadcrumbs %}
	<li>{{filter}} Orders</li>
{% endblock %}

{% block pagetitle %}{{filter}} Orders{% endblock %}

{% block content %}
	<p style="text-align: right">
		<a href="/admin/orders/new">Show New</a> | <a href="/admin/orders/all">Show All</a>
	</p>
	<table>
		<tr>
			<th>&#xA0;</th>
			<th>Placed</th>
			<th>Ref</th>	
			<th>Customer</th>
			<th>Total</th>
			<th>&#xA0;</th>
		</tr>
		{% for o in orders %}
		<tr>
			<td><img class="icon" src="/assets/images/orderstatus_{{o.status}}.png" alt="" /> {{o.get_status_display}}</td>
			<td>{{o.date_placed}}</td>
			<td>{{o.order_number}}</td>
			<td>{{o.customer}}</td>
			<td>£{{o.total|floatformat:2}}</td>
			<td><a href="/admin/orders/{{o.order_number}}/">View</a></td>
		</tr>
		{% endfor %}
	</table>
{% endblock %}
