{% extends "dashboard.html" %}

{% block content %}
<article class="product">
    <header class="object__header">
        <h1>Add photo to {{product.name}}</h1>
    </header>
    <section class="object__panel">
        <form class="panel__item" enctype="multipart/form-data" method="POST" action="{% url 'dashboard:prodphoto-create' product.pk %}">
            {% csrf_token %}
            {{form.as_p}}
            <p class="form__submit">
                <input class="action-button" type="submit" value="Add photo"> or <a href="{% url 'dashboard:product-detail' product.pk %}">cancel</a>
            </p>
        </form>
    </section>
</article>  
{% endblock %}
