{% extends 'dashboard.html' %}

{% block head_title %}New Product Photo | {% endblock %}

{% block content %}
<article>
    <p>
        <a href="{% url 'dashboard:product-detail' product.pk %}">&larr; Back to product</a>
    </p>
    <header>
        <h1>Add photo to {{product.name}}</h1>
    </header>
    <section class="panel">
        <form enctype="multipart/form-data" method="POST" class="panel-form">
            {% csrf_token %}
            {{form.as_p}}
            <p>
                <input class="btn" type="submit" value="Add photo">
            </p>
        </form>
    </section>
</article>  
{% endblock %}
