bornhack-website/shop/templates/order_detail.html

110 lines
3.7 KiB
HTML
Raw Normal View History

2016-05-19 09:19:51 +00:00
{% extends 'shop_base.html' %}
2016-05-15 22:09:00 +00:00
{% load bootstrap3 %}
{% load shop_tags %}
2016-05-06 20:33:59 +00:00
2016-05-19 09:19:51 +00:00
{% block shop_content %}
2016-05-06 20:33:59 +00:00
2016-05-15 22:09:00 +00:00
<h1>Order #{{ order.id }}</h1>
2016-06-01 09:10:06 +00:00
{% if not order.paid %}
<form method="POST" class="form-inline">
{% csrf_token %}
{% endif %}
2016-05-15 22:09:00 +00:00
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>
Name
<th>
Quantity
<th>
Price
<th>
Total
<tbody>
{% for order_product in order.orderproductrelation_set.all %}
<tr>
<td>
{{ order_product.product.name }}
<td>
{% if not order.open == None %}
<input type="number"
class="form-control"
style="width: 75px;"
min=1
name="{{ order_product.id }}"
value="{{ order_product.quantity }}" />
{% bootstrap_button '<i class="glyphicon glyphicon-remove"></i>' button_type="submit" button_class="btn-danger" name="remove_product" value=order_product.pk %}
{% else %}
2016-05-15 22:09:00 +00:00
{{ order_product.quantity }}
{% endif %}
2016-05-15 22:09:00 +00:00
<td>
{{ order_product.product.price|currency }}
2016-05-15 22:09:00 +00:00
<td>
{{ order_product.total|currency }}
2016-05-15 22:09:00 +00:00
{% endfor %}
<tr>
<td colspan="2">
<td>
2016-05-16 14:20:01 +00:00
<strong>Hereof VAT (25%)</strong>
<td>
{{ order.vat|currency }}
<tr>
<td colspan="2">
<td>
<strong>Total</strong>
<td>
{{ order.total|currency }}
2016-05-15 22:09:00 +00:00
</table>
{% if order.open == None and order.customer_comment or order.open %}
2016-11-09 13:34:55 +00:00
<h3>Comment:</h3>
<input type="text" class="form-control" name="customer_comment" style="width: 100%;" placeholder="Please enter shipping address and comments here..." value="{{ order.customer_comment }}" {% if order.open == None %}readonly{% endif %}></p>
{% endif %}
2016-11-09 13:34:55 +00:00
{% if not order.open == None %}
2016-06-01 09:10:06 +00:00
{% bootstrap_button "Update order" button_type="submit" button_class="btn-primary" name="update_order" %}
{% endif %}
{% if not order.paid %}
{% bootstrap_button "Cancel order" button_type="submit" button_class="btn-danger" name="cancel_order" %}
2016-05-29 10:37:14 +00:00
{% endif %}
<hr />
2016-06-01 13:16:12 +00:00
2016-05-29 10:37:14 +00:00
<h3>Payment</h3>
2016-05-29 10:29:38 +00:00
{% if not order.paid %}
<p class="lead">Your order is currently unpaid. Please pick a payment option below.</p>
2016-06-01 13:20:42 +00:00
<p>Once you accept the terms and go to the payment your order will be
2016-06-01 13:16:12 +00:00
finalized and you will no longer be able to change the products or
2016-06-01 13:20:42 +00:00
quantities - so make sure your order is correct before proceeding!</p>
2016-05-15 22:09:00 +00:00
<form method="POST">
{% csrf_token %}
2016-06-01 13:20:42 +00:00
<p>
<div class="checkbox">
<label><input type="checkbox" name="accept_terms"> Accept <a href="{% url 'general-terms' %}">general terms &amp; conditions</a>. You also accept that the merchandise will not be produced and delivered until December 2016. Finally you accept to adhere to our <a href="{% url 'conduct' %}">Code of Conduct</a> during the events as well as in our online channels.</label>
2016-06-01 13:20:42 +00:00
</div>
</p>
{% bootstrap_button "<i class='glyphicon glyphicon-bitcoin'></i> Blockchain" button_type="submit" button_class="btn-primary" name="payment_method" value="blockchain" %}
{% bootstrap_button "<i class='glyphicon glyphicon-piggy-bank'></i> Bank transfer" button_type="submit" button_class="btn-primary" name="payment_method" value="bank_transfer" %}
2016-11-09 11:27:42 +00:00
{% bootstrap_button "<i class='glyphicon glyphicon-cash'></i> Cash" button_type="submit" button_class="btn-primary" name="payment_method" value="cash" %}
2016-05-15 22:09:00 +00:00
</form>
2016-05-29 13:55:25 +00:00
<br>
2016-05-29 13:44:27 +00:00
<p><i>If you have already paid but your order is still showing unpaid,
you can <a href="mailto:info@bornhack.dk">email us</a> or use the
<a href="{% url 'contact' %}">contact</a> page for other options.
Please allow for up to a week for bank transfers to be registered,
the other payment methods should be more or less instant.</i></p>
2016-05-29 10:29:38 +00:00
{% else %}
<p class="lead">Your order is paid in full.</p>
{% endif %}
2016-05-06 20:33:59 +00:00
{% endblock %}