{% extends "dashboard.html" %}

{% block content %}
<article>
    <header class="object__header">
        <h1>Cancel Order #{{order.pk}}</h1>
    </header>
    <section class="object__panel">
        <form method="POST" action="{% url 'dashboard:order-cancel' order.pk %}">
            {% csrf_token %}
            {{ form.as_p }}
            <input class="action-button action-button--warning order__fulfill" type="submit" value="Cancel order"> or <a href="{% url 'dashboard:order-detail' order.pk %}">cancel</a>
            </section>
        </form>
    </section>
</article>
{% endblock content %}
