Rewrite autocomplete foreign key
This commit is contained in:
parent
a0775a69ca
commit
38bca5caf9
@ -1,6 +1,7 @@
|
|||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<input autocomplete="off" data-ac-url="{{custom.search_url}}" data-bs-toggle="dropdown" class="form-control{% if widget.errors %} is-invalid{% endif %}" type="text" placeholder="Search...">
|
<input autocomplete="off" id="{{widget.attrs.id}}-search-input" data-ac-url="{{custom.search_url}}" data-bs-toggle="dropdown" class="form-control{% if widget.errors %} is-invalid{% endif %}" type="text" placeholder="Search...">
|
||||||
|
<ul id="{{widget.attrs.id}}-ac-ul" class="dropdown-menu">
|
||||||
|
</ul>
|
||||||
<div class="d-flex align-items-center" id="{{widget.attrs.id}}-dflex-container">
|
<div class="d-flex align-items-center" id="{{widget.attrs.id}}-dflex-container">
|
||||||
{% if custom.current_instance %}
|
{% if custom.current_instance %}
|
||||||
{% if custom.image_field_name %}
|
{% if custom.image_field_name %}
|
||||||
@ -22,7 +23,5 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul id="{{widget.attrs.id}}-ac-ul" class="dropdown-menu">
|
|
||||||
</ul>
|
|
||||||
<input type="hidden" {% if widget.value != None %}value="{{widget.value}}"{%endif%} name={{widget.name}}>
|
<input type="hidden" {% if widget.value != None %}value="{{widget.value}}"{%endif%} name={{widget.name}}>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user