2016-05-06 20:33:59 +00:00
|
|
|
{% extends 'base.html' %}
|
2016-05-15 22:09:00 +00:00
|
|
|
{% load bootstrap3 %}
|
2016-05-06 20:33:59 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2016-05-15 22:09:00 +00:00
|
|
|
<h1>Order #{{ order.id }}</h1>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
{{ order_product.quantity }}
|
|
|
|
<td>
|
|
|
|
{{ order_product.product.price }}
|
|
|
|
<td>
|
|
|
|
{{ order_product.total }}
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{# TODO: Add total + VAT info #}
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{% if order.open %}
|
|
|
|
<form method="POST">
|
|
|
|
{% csrf_token %}
|
|
|
|
{% bootstrap_button "Credit card" button_type="submit" button_class="btn-primary" name="payment_method" value="credit_card" %}
|
|
|
|
{% bootstrap_button "Blockchain" button_type="submit" button_class="btn-primary" name="payment_method" value="blockchain" %}
|
|
|
|
{% bootstrap_button "Bank transfer" button_type="submit" button_class="btn-primary" name="payment_method" value="bank_transfer" %}
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2016-05-06 20:33:59 +00:00
|
|
|
|
|
|
|
{% endblock %}
|