-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closes: #9583 - Add column specific search field to tables #15073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
4c39516
e762755
f7294f7
664a0eb
cc423f5
50557c0
03f67f3
3243ebd
b54cfd6
5f69666
06c1aff
4ae6683
c3f1a96
f81f76f
0309796
84151cb
77bfd62
25a4e94
f257f4a
8a7df0b
a422a3c
8ad79a6
a9aa0cb
35cff12
1c995fa
479c69b
5830ae9
fd38255
30e6531
f130678
0ad1db9
b12ce97
77cb8ac
d6ab7b7
012e815
852535e
f2c74db
882aa30
8d65973
92c3bbc
4381ea9
92f6f42
764c676
ee83895
a288712
e12ae3a
1958965
7e5d8ea
694fcd3
451a1f4
434cf37
e7649f0
7144954
762ebe2
01cb7be
49bcf57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<div class="col-auto d-print-none"> | ||
<div class="input-group input-group-flat me-2 quicksearch"> | ||
<input type="search" results="5" name="q" id="quicksearch" class="form-control px-2 py-1" placeholder="Quick search" | ||
hx-get="{{ request.full_path }}" hx-target="#object_list" hx-trigger="keyup changed delay:500ms, search" /> | ||
hx-get="" hx-target="#object_list" hx-trigger="keyup changed delay:500ms, search" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed full path, as this will allow taking into account filters on the form (to facilitate pushing of the filters from the column as well). Should not impact functionality There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Do we know this for sure? IIRC we specify the full path for a reason, I just can't recall why. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From my testing, I haven't found any issues with it. |
||
<span class="input-group-text py-1"> | ||
<a href="#" id="quicksearch_clear" class="d-none text-secondary"><i class="mdi mdi-close-circle"></i></a> | ||
</span> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% load form_helpers %} | ||
{% if form_field %} | ||
<div class="dropdown" style="display: inline;"> | ||
<a href="#" classs="btn dropdown-toggle" data-bs-toggle="dropdown" data-bs-auto-close="outside"> | ||
DanSheps marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<i class="mdi mdi-filter-settings" style="font-size: 1.25rem;"> </i> | ||
DanSheps marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</a> | ||
<div class="dropdown-menu dropdown-menu-end"> | ||
{% render_filter_field form_field table=table request=request %} | ||
</div> | ||
</div> | ||
{% endif %} |
Uh oh!
There was an error while loading. Please reload this page.