added display of sub-storage when expanding sub-storages in stock view

This commit is contained in:
2025-02-01 00:16:36 +01:00
parent 871086c7b7
commit 6dc8f3bfef
4 changed files with 20 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
{% load qr_code %}
{% load static %}
{% load crispy_forms_tags %}
{% load storage_tags %}
{% block content %}
<div class="container">
@@ -97,6 +98,9 @@
{% if stock.component.manufacturer %}
Manufacturer: {{stock.component.manufacturer}}
{% endif %}
{% if stock.storage != storage %}
<span class="text-secondary"><br>{{ stock.storage|get_relative_storage_path:storage }}</span>
{% endif %}
{% if stock.lot %}
<span class="text-secondary"><br>Lot: {{stock.lot}}</span>
{% endif %}