add lot name in the breadcrumb

This commit is contained in:
Cayo Puigdefabregas 2021-12-30 22:39:56 +01:00
parent 0f5ab17a3f
commit b730537cde
1 changed files with 11 additions and 1 deletions

View File

@ -7,8 +7,18 @@
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.html">Inventory</a></li>
<li class="breadcrumb-item">Devices</li>
{% if not lot %}
<li class="breadcrumb-item active">Unassgined</li>
{% elif lot.is_temporary %}
<li class="breadcrumb-item active">Temporal Lot</li>
<li class="breadcrumb-item active">{{ lot.name }}</li>
{% elif lot.is_incominig %}
<li class="breadcrumb-item active">Incoming Lot</li>
<li class="breadcrumb-item active">{{ lot.name }}</li>
{% elif lot.is_outgoing %}
<li class="breadcrumb-item active">Outgoing Lot</li>
<li class="breadcrumb-item active">{{ lot.name }}</li>
{% endif %}
</ol>
</nav>
</div><!-- End Page Title -->