This commit is contained in:
Takeus committed 2025-02-27 10:16:09 +01:00
1 parent 9351f51c1e
commit 91c9319147
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -251,7 +251,7 @@ def allocation_search(net_id):
## DECOM ## DECOM
if 'used' in search: if 'used' in search:
for alloc in db_alloc: for alloc in db_alloc:
if alloc.is_used: if alloc.is_used and alloc.is_dhcp == False:
obj_list.append(alloc) obj_list.append(alloc)
else: else:
+1 -1
View File
@@ -8,7 +8,7 @@
<div class="col-12"> <div class="col-12">
<div class="mb-3"> <div class="mb-3">
<input class="form-control" type="search" <input class="form-control" type="search"
name="search" placeholder="Begin Typing To Search Users..." name="search" placeholder="Begin Typing To Search Allocation(s)..."
hx-post="{{ url_for('network.allocation_search',net_id=network.id) }}" hx-post="{{ url_for('network.allocation_search',net_id=network.id) }}"
hx-trigger="input changed delay:500ms, keyup[key=='Enter']" hx-trigger="input changed delay:500ms, keyup[key=='Enter']"
hx-target="#search-results" hx-target="#search-results"