Files
octopus/myproject/inventory/templates/inventory/batch/batch_detail.html
Andrey Smakotin 8deef2fa75 refactor: Миграция всех страниц на минималистичный базовый шаблон
Мигрированы все 31 страница модуля inventory с устаревшего base_inventory.html (с sidebar) на новый base_inventory_minimal.html (без sidebar).

Изменения:
- Обновлены все extends на base_inventory_minimal.html
- Добавлены breadcrumb блоки для навигации на всех страницах
- Удалён устаревший base_inventory.html с боковой панелью
- Единообразный UI на всех страницах склада

Обновлённые разделы (31 файл):
- Allocation (1): распределение продаж
- Batch (2): партии товаров
- Incoming (4): приходы товара
- Incoming Batch (2): партии поступлений
- Inventory (3): инвентаризация
- Movements (1): журнал операций
- Reservation (3): резервирования
- Sale (4): продажи
- Stock (2): остатки
- Transfer (3): перемещения
- Warehouse (3): склады
- Writeoff (3): списания

Результат:
- Консистентный минималистичный дизайн на всех страницах
- Больше пространства для контента (100% ширины вместо 75%)
- Улучшенная навигация через breadcrumbs и dropdown меню
- Проще поддержка (один базовый шаблон вместо двух)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-14 00:33:26 +03:00

7 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends 'inventory/base_inventory_minimal.html' %}
{% load inventory_filters %}
{% block inventory_title %}Партия товара{% endblock %}
{% block breadcrumb_current %}Партии{% endblock %}
{% block inventory_content %}<div class="card"><div class="card-header"><h4 class="mb-0">Партия #{{ batch.id }}: {{ batch.product.name }}</h4></div><div class="card-body"><table class="table table-borderless"><tr><th>Товар:</th><td>{{ batch.product.name }}</td></tr><tr><th>Склад:</th><td>{{ batch.warehouse.name }}</td></tr><tr><th>Количество:</th><td><strong>{{ batch.quantity|smart_quantity }} шт</strong></td></tr><tr><th>Цена закупки:</th><td>{{ batch.cost_price }} руб.</td></tr><tr><th>Создана:</th><td>{{ batch.created_at|date:"d.m.Y H:i" }}</td></tr><tr><th>Статус:</th><td>{% if batch.is_active %}<span class="badge bg-success">Активна</span>{% else %}<span class="badge bg-secondary">Неактивна</span>{% endif %}</td></tr></table><h5 class="mt-4">История операций</h5><div class="alert alert-info">История продаж и списаний этой партии.</div><a href="{% url 'inventory:batch-list' %}" class="btn btn-secondary"><i class="bi bi-arrow-left"></i> Вернуться</a></div></div>
{% endblock %}