{% extends "base.html" %}
{% block title %}Добавить склад{% endblock %}
{% block content %}
<div class="container my-4">
    <h2 class="mb-4">Добавить склад</h2>
    <form method="POST" class="needs-validation" novalidate>
        {% csrf_token %}
        <div class="mb-3">
            <label for="name" class="form-label">Название склада:</label>
            <input type="text" id="name" name="name" class="form-control" required>
        </div>
        <div class="mb-3">
            <label for="location" class="form-label">Расположение:</label>
            <input type="text" id="location" name="location" class="form-control" required>
        </div>
        <button type="submit" class="btn btn-success">Добавить</button>
        <a href="{% url 'warehouses' %}" class="btn btn-secondary">Назад к списку</a>
    </form>
</div>
{% endblock %}
