Implemented date format UI preference (#4399)

This commit is contained in:
Vasilis Tako 2021-08-27 16:31:12 +02:00
parent af1ab037e9
commit fe0806a09d
6 changed files with 33 additions and 1 deletions

View file

@ -448,6 +448,18 @@ function printGUI()
-- ######################
local d_labels = {i18n("little_endian"), i18n("middle_endian"), i18n("big_endian")}
local d_values = {"little_endian", "middle_endian", "big_endian"}
local d_label = "toggle_date_type"
multipleTableButtonPrefs(subpage_active.entries[d_label].title,
subpage_active.entries[d_label].description,
d_labels, d_values, "middle_endian", "primary",
d_label, "ntopng.user." .. _SESSION["user"] .. ".datetype")
-- ######################
prefsInputFieldPrefs(subpage_active.entries["max_ui_strlen"].title, subpage_active.entries["max_ui_strlen"].description,
"ntopng.prefs.", "max_ui_strlen", prefs.max_ui_strlen, "number", nil, nil, nil, {min=3, max=128})