{% extends "dashboard.html" %}

{% block content %}
<article class="product">
    <header class="object__header">
        <h1>Update Coupon</h1>
    </header>
    <section class="object__panel">
        <form class="panel__item" method="POST" action="{% url 'dashboard:coupon-update' coupon.pk %}">
            {% csrf_token %}
            {{form.as_p}}
            <p class="form__submit">
                <input class="action-button" type="submit" value="Save changes"> or <a href="{% url 'dashboard:coupon-detail' coupon.pk %}">cancel</a>
            </p>
        </form>
    </section>
</article>  
{% endblock %}
