{% extends "dashboard.html" %}

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