{% extends "base.html" %}
{% load quantity %}
{% load item_views %}

{% block pagetitle %}Confirm order (alternate payment){% endblock %}

{% block breadcrumbs %}
	<li>Confirm order (alternate payment)</li>
{% endblock %}

{% block content %}
	<p>Please check the following order details carefully before continuing.</p>
	<form class="boxed" action="/my-properties/payment" method="post">
		<h3 class="label">Package</h3>
		<table class="order nosort">
			<tr>
				<th>&nbsp;</th>
				<th>Qty</th>
				<th>Price</th>
			</tr>
			{% for i in basket %}
			<tr>
				<td>{% item_view view-basket-item i %}</td>
				<td>{% quantity i %}</td>
				<td>£{{i.get_total_price|floatformat:2}}</td>
			</tr>
			{% endfor %}
			{% if basket.charges %}
			<tr class="total">
				<th colspan="2">Subtotal</th>
				<td>£{{basket.get_subtotal|floatformat:2}}</td>
			</tr>
			{% for charge, value in basket.get_charges %}
			<tr class="total">
				<th colspan="2">{{charge}}</th>
				<td>£{{value|floatformat:2}}</td>
			</tr>
			{% endfor %}
			{% endif %}
			<tr class="total">
				<th colspan="2">Total</th>
				<td>£{{basket.get_total|floatformat:2}}</td>
			</tr>
		</table>
		<div class="buttons">
			<input type="submit" name="amend" value="Edit Package" />
		</div>
	</form>

	<form class="boxed" action="/my-properties/alternate-payment" method="post">
		<h3 class="label">Place order</h3>
		<p class="note">Before proceeding to pay with alternate payment methods, please enter your billing details to help us track your order.</p>
		<p class="note">Note that for immediate publishing (subject to approval) we recommend <a href="/my-properties/payment">payment by credit card</a>.</p>
		{{form.as_p}}
		<div class="buttons">
			<input type="submit" name="amend" value="Place order" />
		</div>
	</form>
{% endblock %}
