mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Add pref to enable searching in all interfaces
This commit is contained in:
parent
612a1c5905
commit
42bd4ade03
5 changed files with 29 additions and 3 deletions
|
|
@ -633,6 +633,19 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
|
||||
-- #####################
|
||||
|
||||
local function printSearchPrefs()
|
||||
print('<thead class="table-primary"><tr><th colspan=2 class="info">' .. i18n("prefs.search_preferences") ..
|
||||
'</th></tr></thead>')
|
||||
|
||||
prefsToggleButton(subpage_active, {
|
||||
field = "toggle_search_in_all_interfaces",
|
||||
pref = "search_in_all_interfaces",
|
||||
default = "0"
|
||||
})
|
||||
end
|
||||
|
||||
-- #####################
|
||||
|
||||
function printGUI()
|
||||
print('<form method="post">')
|
||||
print('<table class="table">')
|
||||
|
|
@ -713,6 +726,8 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
|
||||
printMenuEntriesPrefs()
|
||||
|
||||
printSearchPrefs()
|
||||
|
||||
print(
|
||||
'<tr><th colspan=2 style="text-align:right;"><button type="submit" class="btn btn-primary" style="width:115px" disabled="disabled">' ..
|
||||
i18n("save") .. '</button></th></tr>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue