add a test page containing datetimepicker range

This commit is contained in:
gabryon99 2021-03-09 13:50:09 +01:00
parent d2271c884e
commit 59725e0355
10 changed files with 194 additions and 3 deletions

View file

@ -66,6 +66,13 @@ function ui_utils.create_navbar_title(title, subpage, title_link)
return "<a href='".. title_link .."'>".. title .. "</a>&nbsp;/&nbsp;<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))