{% extends 'base.html' %} {% load bootstrap3 %} {% block content %}

Order #{{ order.id }}

{% if not order.open == None %}
{% csrf_token %} {% endif %} {% for order_product in order.orderproductrelation_set.all %}
Name Quantity Price Total
{{ order_product.product.name }} {% if not order.open == None %} {% bootstrap_button '' button_type="submit" button_class="btn-danger" name="remove_product" value=order_product.pk %} {% else %} {{ order_product.quantity }} {% endif %} {{ order_product.product.price }} {{ order_product.total }} {% endfor %}
Hereof VAT (25%) {{ order.vat }}
Total {{ order.total }}
{% if not order.open == None %} {% bootstrap_button "Update order" button_type="submit" button_class="btn-primary" name="update_order" %}

Checkout

{% 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" %}
{% endif %} {% endblock %}