{% extends 'dashboard.html' %}

{% block head_title %}Cancel Order No. {{ order.pk }} | {% endblock %}

{% block content %}
<article>
    <p>
        <a href="{% url 'dashboard:order-detail' order.pk %}">&larr; Back</a>
    </p>
    <header>
        <h1>Cancel Order No. {{order.pk}}</h1>
    </header>
    <section class="panel">
        <header class="panel-header">
            <h4>Are you sure you want to cancel Order No. {{ order.pk }}?</h4>
        </header>
        <form method="POST" class="panel-form">
            {% csrf_token %}
            {{ form.as_p }}
            <p>
                <input class="btn btn-warning" type="submit" value="Cancel order">
            </p>
        </form>
    </section>
</article>
{% endblock content %}
