mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
created generate_switch_toggle function
This commit is contained in:
parent
7b4bdfcf4a
commit
aa719d21d7
1 changed files with 11 additions and 0 deletions
|
|
@ -3391,6 +3391,17 @@ function getFolderSize(path, timeout)
|
|||
return size
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function generate_switch_toggle(id, label, disabled)
|
||||
return ([[
|
||||
<div class="custom-control custom-switch ]]..(disabled and 'disabled' or '') ..[[">
|
||||
<input type="checkbox" class="custom-control-input" id="]].. id ..[[">
|
||||
<label class="custom-control-label" for="]].. id ..[[">]].. label ..[[</label>
|
||||
</div>
|
||||
]])
|
||||
end
|
||||
|
||||
-- ###########################################
|
||||
|
||||
function getHttpUrlPrefix()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue