diff options
Diffstat (limited to 'chrony-config-html.lsp')
-rw-r--r-- | chrony-config-html.lsp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/chrony-config-html.lsp b/chrony-config-html.lsp new file mode 100644 index 0000000..9272f40 --- /dev/null +++ b/chrony-config-html.lsp @@ -0,0 +1,26 @@ +<% local form, viewlibrary, page_info, session = ... +require("viewfunctions") +%> +<% +--[[ DEBUG INFORMATION +io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") +io.write(html.cfe_unpack(form)) +io.write("</span>") +--]] +%> + +<% displaycommandresults({"startstop"}, session) %> + +<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("status") +end %> + +<H1>Config</H1> +<% + form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action + displayform(form) +%> + +<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("startstop") +end %> |