summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-10-28 23:01:27 +0000
committerTed Trask <ttrask01@yahoo.com>2012-10-28 23:01:27 +0000
commit0827d796166185650b58d98a273308315e24975e (patch)
tree17a0f463bcd783094bd567ccce79cc142c1dcaa3
parent86295c2cb82d92faacad467a73e2219f2747f7e9 (diff)
downloadacf-chrony-0827d796166185650b58d98a273308315e24975e.tar.bz2
acf-chrony-0827d796166185650b58d98a273308315e24975e.tar.xz
Cleaned up config view by updating CFE for autoview
-rw-r--r--chrony-config-html.lsp6
-rw-r--r--chrony-model.lua10
2 files changed, 6 insertions, 10 deletions
diff --git a/chrony-config-html.lsp b/chrony-config-html.lsp
index fbf58e1..58e1891 100644
--- a/chrony-config-html.lsp
+++ b/chrony-config-html.lsp
@@ -6,8 +6,4 @@ require("htmlviewfunctions")
viewlibrary.dispatch_component("status")
end %>
-<H1>Config</H1>
-<%
- local order = { "server", "allow", "driftfile", "keyfile", "commandkey" }
- htmlviewfunctions.displayform(form, order, nil, page_info)
-%>
+<% htmlviewfunctions.displayitem(form, 1, page_info) %>
diff --git a/chrony-model.lua b/chrony-model.lua
index 350dd8b..0bc53d5 100644
--- a/chrony-model.lua
+++ b/chrony-model.lua
@@ -137,11 +137,11 @@ end
function get_config()
local output = {}
- output.server = cfe({ type="list", value={}, label="Servers", descr="List of NTP servers by name or IP (ie. 0.pool.ntp.org). If infrequent Internet connection, follow name/IP with 'offline'." })
- output.allow = cfe({ type="list", value={}, label="Allow", descr="List of allowed clients by name/subnet/IP or 'all'."})
- output.driftfile = cfe({ label="Drift File", descr="Name of drift file (ie. /var/log/chrony/chrony.drift)" })
- output.keyfile = cfe({ label="Key File", descr="Name of key file (ie. /etc/chrony/chrony.keys)" })
- output.commandkey = cfe({ label="Command Key", descr="Number of key in Key File for commands." })
+ output.server = cfe({ type="list", value={}, label="Servers", descr="List of NTP servers by name or IP (ie. 0.pool.ntp.org). If infrequent Internet connection, follow name/IP with 'offline'.", seq=1 })
+ output.allow = cfe({ type="list", value={}, label="Allow", descr="List of allowed clients by name/subnet/IP or 'all'.", seq=2 })
+ output.driftfile = cfe({ label="Drift File", descr="Name of drift file (ie. /var/log/chrony/chrony.drift)", seq=3 })
+ output.keyfile = cfe({ label="Key File", descr="Name of key file (ie. /etc/chrony/chrony.keys)", seq=4 })
+ output.commandkey = cfe({ label="Command Key", descr="Number of key in Key File for commands.", seq=5 })
local config = format.parse_linesandwords(fs.read_file(configfile) or "", "[!;#%%]")
if config then