shimatta-kenkyusho/shimatta_kenkyusho/templates/widgets/autrocomplete-foreign-key.html

7 lines
601 B
HTML
Raw Normal View History

2021-12-31 16:38:23 +01:00
<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>