diff options
-rw-r--r-- | openntpd-config-html.lsp | 7 | ||||
-rw-r--r-- | openntpd-model.lua | 8 |
2 files changed, 5 insertions, 10 deletions
diff --git a/openntpd-config-html.lsp b/openntpd-config-html.lsp index b6d6b55..b478495 100644 --- a/openntpd-config-html.lsp +++ b/openntpd-config-html.lsp @@ -7,9 +7,4 @@ html = require("acf.html") viewlibrary.dispatch_component("status") end %> -<H1><%= html.html_escape(form.label) %></H1> -<% - form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action - local order = { "setstimeonstartup", "listen", "server", "servers" } - htmlviewfunctions.displayform(form, order) -%> +<% htmlviewfunctions.displayitem(form, 1, page_info) %> diff --git a/openntpd-model.lua b/openntpd-model.lua index 097eba2..746db69 100644 --- a/openntpd-model.lua +++ b/openntpd-model.lua @@ -75,10 +75,10 @@ end function read_config () local config = {} - config.server = cfe({ type="list", value={}, label="Single servers", descr="List of server IP addresses/hostnames. OpenNTPD will attempt to synchronize to one resolved address for each hostname entry." }) - config.servers = cfe({ type="list", value={}, label="Multiple servers", descr="List of server IP addresses/hostnames. OpenNTPD will attempt to synchronize to all resolved addresses for each hostname entry." }) - config.listen = cfe({ type="list", value={}, label="Addresses to listen on", descr="List of IP addresses/hostnames to listen on. '*' means listen on all local addresses." }) - config.setstimeonstartup = cfe({ type="boolean", value=false, label="Set time on startup" }) + config.server = cfe({ type="list", value={}, label="Single servers", descr="List of server IP addresses/hostnames. OpenNTPD will attempt to synchronize to one resolved address for each hostname entry.", seq=3 }) + config.servers = cfe({ type="list", value={}, label="Multiple servers", descr="List of server IP addresses/hostnames. OpenNTPD will attempt to synchronize to all resolved addresses for each hostname entry.", seq=4 }) + config.listen = cfe({ type="list", value={}, label="Addresses to listen on", descr="List of IP addresses/hostnames to listen on. '*' means listen on all local addresses.", seq=2 }) + config.setstimeonstartup = cfe({ type="boolean", value=false, label="Set time on startup", seq=1 }) local conf = format.parse_linesandwords(fs.read_file(configfile) or "") for i,line in ipairs(conf) do |