{% extends "dashboard.html" %}
{% load static %}

{% block content %}
<article>
    <header class="object__header">
        <h1><img src="{% static 'images/cubes.png' %}" alt=""> Product</h1>
    </header>
    <section class="product__detail object__panel">
        <figure class="product__figure">
            <img class="" src="{{product.get_first_img.image.url}}" alt="{{product.get_first_img.image}}">
        </figure>
        <form method="post">{% csrf_token %}
            <p>Are you sure you want to delete "{{ object }}"?</p>
            {{ form.as_p }}
            <p>
                <input class="action-button action-button--warning" type="submit" value="Confirm"> or <a href="{% url 'dashboard:product-detail' product.pk %}">cancel</a>
            </p>
        </form>
    </section>
</article>
{% endblock content %}
