mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add ntopng Host Address prefs under User Interface settings
This commit is contained in:
parent
6187ee30b8
commit
615cb2544a
5 changed files with 48 additions and 11 deletions
|
|
@ -496,12 +496,26 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
-- #####################
|
||||
|
||||
function printGUI()
|
||||
local ntopng_host_info = ntop.getHostInformation()
|
||||
|
||||
print('<form method="post">')
|
||||
print('<table class="table">')
|
||||
|
||||
print('<thead class="table-primary"><tr><th colspan=2 class="info">' .. i18n("prefs.web_user_interface") ..
|
||||
'</th></tr></thead>')
|
||||
|
||||
prefsInputFieldPrefs(subpage_active.entries["ntopng_host_address"].title,
|
||||
subpage_active.entries["ntopng_host_address"].description,
|
||||
"ntopng.prefs.", "ntopng_host_address",
|
||||
ntopng_host_info.ip or "", -- default
|
||||
false, true, nil, nil, {
|
||||
attributes = {
|
||||
spellcheck = "false"
|
||||
},
|
||||
required = false
|
||||
})
|
||||
|
||||
|
||||
if prefs.is_autologout_enabled == true then
|
||||
prefsToggleButton(subpage_active, {
|
||||
field = "toggle_autologout",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue