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

{% block head_title %}Restock {{ variant }} | {% endblock %}

{% block content %}
<article>
    <p><a href="{% url 'dashboard:stock' %}">&larr; Back to stock</a></p>
    <header>
        <h1><img src="{% static 'images/warehouse.png' %}"> Restock variant</h1>
    </header>
    <section class="panel">
        <header class="panel-header">
            <h4>{{ variant }}</h4>
        </header>
        <form method="POST" action="{% url 'dashboard:variant-restock' product.pk variant.pk %}" class="panel-form">
            {% csrf_token %}
            {{form.as_p}}
            <p>Total in warehouse: {{ variant.total_in_warehouse }}</p>
            <p class="form__submit">
                <input class="btn" type="submit" value="Save changes">
            </p>
        </form>
    </section>
</article>
{% endblock %}
