7 lines
601 B
HTML
7 lines
601 B
HTML
<div class="dropdown">
|
|
<input autocomplete="off" data-bs-toggle="dropdown" class="form-control{% if widget.errors %} is-invalid{% endif %}" type="text" {% if widget.value != None %}value="{{widget.value}}"{%endif%}
|
|
{% for name, value in widget.attrs.items %}{% if value is not False and name != 'id' %} {{ name }}{% if value is not True %}="{{ value|stringformat:'s' }}"{% endif %}{% endif %}{% endfor %} id="{{widget.attrs.id}}_search_field">
|
|
<ul id="{{form.manufacturer.id_for_label}}-ac-ul" class="dropdown-menu">
|
|
</ul>
|
|
<input type="hidden" value="" name={{widget.name}}>
|
|
</div> |