{% extends "base.html" %}
{% block title %}Склады{% endblock %}
{% block content %}
<div class="container my-4">
    <h2 class="mb-4">Список складов</h2>
    <ul class="list-group">
        {% for warehouse in warehouses %}
        <li class="list-group-item d-flex justify-content-between align-items-center">
            {{ warehouse.name }}
            <span class="badge bg-secondary">{{ warehouse.location }}</span>
        </li>
        {% endfor %}
    </ul>
    <a href="{% url 'add_warehouse' %}" class="btn btn-primary mt-4">Добавить склад</a>
</div>
{% endblock %}
