Refactor inventory filtering and enhance templates with select inputs for improved data handling

This commit is contained in:
Yaro Kasear 2025-06-12 14:39:15 -05:00
parent ffaae2541f
commit 684a98b216
4 changed files with 26 additions and 13 deletions

View file

@ -60,9 +60,13 @@ submit_button=True) }}
<input type="text" class="form-control" name="model" placeholder="-" value="{{ item.model }}">
</div>
<div class="col-4">
<label for="category" class="form-label">Category</label>
<input type="text" class="form-control" name="category" placeholder="-"
value="{{ item.item.description }}">
<label for="type" class="form-label">Category</label>
<select name="type" id="type" class="form-select">
<option>-</option>
{% for t in types %}
<option value="{{ t.id }}"{% if t.id == item.type_id %} selected{% endif %}>{{ t.description }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="row">