16 lines
478 B
HTML
16 lines
478 B
HTML
<div class="form-group" id="form-{{name}}">
|
|
<label for="{{name}}">{{name|capfirst}}</label>
|
|
<select class="form-control"
|
|
name="{{name}}" id="{{name}}"
|
|
{% if name != "trim" %}
|
|
hx-get="{% url 'inventory_items_filter' %}"
|
|
hx-target="#form-{{target}}"
|
|
hx-select="#form-{{target}}"
|
|
hx-swap="outerHTML"
|
|
{% endif %}
|
|
>
|
|
{% for item in data %}
|
|
<option value="{{ item.pk }}">{{ item.name }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div> |