Add stock list to storage dtail view and start search
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<h1>Low Stocks</h1>
|
||||
<div class="list-group">
|
||||
{% for low in low_stocks %}
|
||||
<a href="{% url 'parts-stocks-detail' uuid=low.storage.id %}" class="text-decoration-none">
|
||||
<a href="{% url 'parts-stocks-detail' uuid=low.storage.id %}?search={{low.component.id|urlencode}}" class="text-decoration-none">
|
||||
<li class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
|
||||
<div class="flex-shrink-0">
|
||||
{% if low.component.get_resolved_image %}
|
||||
@@ -19,7 +19,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="flex-grow-1 ms-3">
|
||||
<h5 class="mt-0">{{ low.component.name }} in {{ low.component.package }}</h5>
|
||||
<h5 class="mt-0">{{ low.component.name }}{% if low.component.package %} in {{ low.component.package }}{% endif %}</h5>
|
||||
{{ low.storage }}
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user