mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
V1.2.1
This commit is contained in:
1 parent
9351f51c1e
commit
91c9319147
2 files changed
+2
-2
No files matched your search
@@ -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:
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in new issue
Block a user