mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Add Active Monitoring toggle (#8225)
This commit is contained in:
parent
bad3851700
commit
4b0767ca2e
8 changed files with 54 additions and 0 deletions
|
|
@ -276,7 +276,28 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
end
|
||||
|
||||
-- ================================================================================
|
||||
function printActiveMonitoring()
|
||||
print('<form method="post">')
|
||||
print('<table class="table">')
|
||||
print('<thead class="table-primary"><tr><th colspan=2 class="info">' .. i18n("active_monitoring_stats.active_monitoring") ..
|
||||
'</th></tr></thead>')
|
||||
|
||||
prefsToggleButton(subpage_active, {
|
||||
field = "toggle_active_monitoring",
|
||||
default = "0",
|
||||
pref = "active_monitoring",
|
||||
})
|
||||
|
||||
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>')
|
||||
print('</table>')
|
||||
print [[<input name="csrf" type="hidden" value="]]
|
||||
print(ntop.getRandomCSRFValue())
|
||||
print [[" />
|
||||
</form> ]]
|
||||
|
||||
end
|
||||
function printAlerts()
|
||||
print('<form method="post">')
|
||||
print('<table class="table">')
|
||||
|
|
@ -2261,6 +2282,10 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
printAlerts()
|
||||
end
|
||||
|
||||
if (tab == "active_monitoring") then
|
||||
printActiveMonitoring()
|
||||
end
|
||||
|
||||
if (tab == "protocols") then
|
||||
printProtocolPrefs()
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue