{% extends "base.html" %}

{% block breadcrumbs %}
	<li><a href="/my-properties/">My Properties</a></li>
	<li>Order Placed</li>
{% endblock %}

{% block pagetitle %}Order Placed{% endblock %}

{% block content %}
	{% ifequal order.order_status "N" %}
		<p>Your order has been placed. Payment has not yet been taken.</p>
		<p>Thank you.</p>
	{% endifequal %}
	{% ifequal order.order_status "P" %}
		<p>Your order has been successfully purchased and will be fulfilled as soon as possible.</p>
		<p>Thank you.</p>
	{% endifequal %}
	{% ifequal order.order_status "C" %}
		<p>Your order has been successfully purchased.</p>
		<p>Thank you.</p>
	{% endifequal %}
	{% ifequal order.order_status "D" %}
		<p>Your credit card was declined by the issuer. We apologise for any inconvenience.</p>
		<p>Your order has been stored; please contact us if you wish to arrange an alternative method of payment.</p>
	{% endifequal %}
	{% ifequal order.order_status "F" %}
		<p>An error occurred while trying to authorise your payment. We apologise for any inconvenience.</p>
		<p>Your order has been stored; please contact us if you wish to arrange an alternative method of payment.</p>
	{% endifequal %}

	<dl>
		<dt>Order Number</dt>
		<dd>{{order.order_number}}</dd>

		<dt>Placed</dt>
		<dd>{{order.date_placed}}</dd>
	</dl>

{% endblock %}
