mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
parent
857629ccf0
commit
eea288dee9
11 changed files with 159 additions and 160 deletions
|
|
@ -3383,17 +3383,6 @@ 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
|
||||
|
||||
-- ##############################################
|
||||
|
||||
--- Return an HTML `select` element with passed options.
|
||||
--
|
||||
function generate_select(id, name, is_required, is_disabled, options, additional_classes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue