mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-10 01:28:16 -06:00
Adjusts in table_controls_htmx.html to vertical height of the Quick Search match to the dropdown.
This commit is contained in:
parent
e410c2805d
commit
e42200dc33
BIN
netbox/project-static/dist/netbox.js.map
vendored
BIN
netbox/project-static/dist/netbox.js.map
vendored
Binary file not shown.
@ -1,4 +1,9 @@
|
|||||||
import { isTruthy } from './util';
|
import { isTruthy } from './util';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize the applied filter display.
|
||||||
|
*
|
||||||
|
*/
|
||||||
export function initAppliedFilter(): void {
|
export function initAppliedFilter(): void {
|
||||||
const appliedFilter = document.getElementById('appliedfilters');
|
const appliedFilter = document.getElementById('appliedfilters');
|
||||||
if (isTruthy(appliedFilter)) {
|
if (isTruthy(appliedFilter)) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<div class="row mb-3" id="results">
|
<div class="row mb-3" id="results">
|
||||||
<div class="col-auto d-print-none">
|
<div class="col-auto d-print-none">
|
||||||
<div class="input-group input-group-flat me-2 quicksearch" hx-disinherit="hx-select hx-swap">
|
<div class="input-group input-group-flat me-2 quicksearch" hx-disinherit="hx-select hx-swap">
|
||||||
<input type="search" results="5" name="q" id="quicksearch" class="form-control px-2 py-1"
|
<input type="search" results="5" name="q" id="quicksearch" class="form-control"
|
||||||
placeholder="Quick search"
|
placeholder="Quick search"
|
||||||
hx-get="{{ request.full_path }}" hx-target="#object_list" hx-trigger="keyup changed delay:500ms, search"/>
|
hx-get="{{ request.full_path }}" hx-target="#object_list" hx-trigger="keyup changed delay:500ms, search"/>
|
||||||
<span class="input-group-text py-1">
|
<span class="input-group-text py-1">
|
||||||
@ -15,12 +15,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-auto d-print-none">
|
<div class="col-auto d-print-none">
|
||||||
<div>
|
<label class="my-2" for="id_filter_id">Saved Filter</label>
|
||||||
<label for="id_filter_id" class="my-1">{{ filter_form.filter_id.label }}</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-auto d-print-none">
|
<div class="col-sm-4 d-print-none">
|
||||||
{{ filter_form.filter_id }}
|
{{ filter_form.filter_id }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user