mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
add a test page containing datetimepicker range
This commit is contained in:
parent
d2271c884e
commit
59725e0355
10 changed files with 194 additions and 3 deletions
|
|
@ -66,6 +66,13 @@ function ui_utils.create_navbar_title(title, subpage, title_link)
|
|||
return "<a href='".. title_link .."'>".. title .. "</a> / <span>"..subpage.."</span>"
|
||||
end
|
||||
|
||||
function ui_utils.render_datetime_range_picker(begin_options, end_options)
|
||||
return template_utils.gen("pages/components/range-picker.template", {
|
||||
begin_options = begin_options,
|
||||
end_options = end_options
|
||||
})
|
||||
end
|
||||
|
||||
--- Shortcut function to print a togglw switch inside the requested page
|
||||
function ui_utils.print_toggle_switch(context)
|
||||
print(template_utils.gen("on_off_switch.html", context))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue