summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-10-28 23:30:03 +0000
committerTed Trask <ttrask01@yahoo.com>2012-10-28 23:30:03 +0000
commit45855c1af634a6b6bc60dfd9d13fc755eb1c3711 (patch)
treeb52e143a1b5d21e1464587b8706579b907bad0d7
parent740720bd2e3102832031b94e81daba0d16189cdd (diff)
downloadacf-alpine-baselayout-45855c1af634a6b6bc60dfd9d13fc755eb1c3711.tar.bz2
acf-alpine-baselayout-45855c1af634a6b6bc60dfd9d13fc755eb1c3711.tar.xz
Removed unneeded views by updating CFE for autoview
-rw-r--r--hostname-read-html.lsp (renamed from hostname-html.lsp)0
-rw-r--r--password-edit-html.lsp13
-rw-r--r--password-model.lua6
-rw-r--r--rc-edit-html.lsp12
-rw-r--r--rc-model.lua5
5 files changed, 6 insertions, 30 deletions
diff --git a/hostname-html.lsp b/hostname-read-html.lsp
index 604d9b0..604d9b0 100644
--- a/hostname-html.lsp
+++ b/hostname-read-html.lsp
diff --git a/password-edit-html.lsp b/password-edit-html.lsp
deleted file mode 100644
index 0eeddaa..0000000
--- a/password-edit-html.lsp
+++ /dev/null
@@ -1,13 +0,0 @@
-<% local form, viewlibrary, page_info = ...
-require("htmlviewfunctions")
-html = require("acf.html")
-%>
-
-<H1><%= html.html_escape(form.label) %></H1>
-<%
- form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
- form.value.password.type = "password"
- form.value.password_confirm.type = "password"
- local order = {"user", "password"}
- htmlviewfunctions.displayform(form, order)
-%>
diff --git a/password-model.lua b/password-model.lua
index 6b18897..126860c 100644
--- a/password-model.lua
+++ b/password-model.lua
@@ -7,9 +7,9 @@ require ("posix")
read_password = function()
pw = {}
- pw.user = cfe({ label="User Name" })
- pw.password = cfe({ label="Password" })
- pw.password_confirm = cfe({ label="Password (confirm)" })
+ pw.user = cfe({ label="User Name", seq=1 })
+ pw.password = cfe({ type="password", label="Password", seq=2 })
+ pw.password_confirm = cfe({ type="password", label="Password (confirm)", seq=3 })
return cfe({ type="group", value=pw, label="System Password" })
end
diff --git a/rc-edit-html.lsp b/rc-edit-html.lsp
deleted file mode 100644
index 8c7f360..0000000
--- a/rc-edit-html.lsp
+++ /dev/null
@@ -1,12 +0,0 @@
-<% local form, viewlibrary, page_info = ...
-require("htmlviewfunctions")
-html = require("acf.html")
-%>
-
-<H1><%= html.html_escape(form.label) %></H1>
-<%
- form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
- form.value.servicename.readonly = true
- local order = {"servicename", "runlevels"}
- htmlviewfunctions.displayform(form, order)
-%>
diff --git a/rc-model.lua b/rc-model.lua
index cc502c1..213b481 100644
--- a/rc-model.lua
+++ b/rc-model.lua
@@ -33,8 +33,9 @@ end
read_runlevels = function(self, clientdata)
local servicename = clientdata.servicename
local value = {}
- value.servicename = cfe({ value=servicename or "", label="Service Name" })
- value.runlevels = cfe({ type="multi", value={}, label="Service Runlevels", option=runlevels })
+ value.servicename = cfe({ value=servicename or "", label="Service Name", seq=1 })
+ if servicename then value.servicename.readonly = true end
+ value.runlevels = cfe({ type="multi", value={}, label="Service Runlevels", option=runlevels, seq=2 })
-- read in the value for the servicename
config = config or processinfo.read_initrunlevels()