mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
#6797: Fix duplicate ID on searchbar fields
This commit is contained in:
parent
7d5f647cd3
commit
5ba053a1c0
@ -1,13 +1,11 @@
|
|||||||
<form class="input-group w-100" action="{% url 'search' %}" method="get">
|
<form class="input-group w-100" action="{% url 'search' %}" method="get">
|
||||||
<input
|
<input
|
||||||
name="q"
|
name="q"
|
||||||
id="id_q"
|
|
||||||
type="text"
|
type="text"
|
||||||
aria-label="Search"
|
aria-label="Search"
|
||||||
placeholder="Search"
|
placeholder="Search"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value="{{ request.GET.q }}"
|
value="{{ request.GET.q }}"
|
||||||
aria-describedby="search-button"
|
|
||||||
/>
|
/>
|
||||||
<input name="obj_type" hidden type="text" class="search-obj-type" />
|
<input name="obj_type" hidden type="text" class="search-obj-type" />
|
||||||
<span class="input-group-text search-obj-selected">All Objects</span>
|
<span class="input-group-text search-obj-selected">All Objects</span>
|
||||||
@ -46,7 +44,7 @@
|
|||||||
<li><hr class="dropdown-divider" /></li>
|
<li><hr class="dropdown-divider" /></li>
|
||||||
{% endif %} {% endfor %}
|
{% endif %} {% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
<button class="btn btn-primary" type="submit" id="search-button">
|
<button class="btn btn-primary" type="submit">
|
||||||
<i class="mdi mdi-magnify"></i>
|
<i class="mdi mdi-magnify"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user