summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-02-23 14:09:03 +0000
committerTed Trask <ttrask01@yahoo.com>2012-02-23 14:09:03 +0000
commitefdd93c695574329b3d98455a0a88320a1c79d5b (patch)
tree267283ac7383989f1ec174c6b851fc02d9463437
parent7a094cf04dd3fe002bf568e5bdbc29ddd833fb29 (diff)
downloadacf-core-efdd93c695574329b3d98455a0a88320a1c79d5b.tar.bz2
acf-core-efdd93c695574329b3d98455a0a88320a1c79d5b.tar.xz
Made modelfunctions capitalize the startstop options, and now no need for a custom view
-rw-r--r--app/startstop-html.lsp10
-rw-r--r--lib/modelfunctions.lua4
2 files changed, 4 insertions, 10 deletions
diff --git a/app/startstop-html.lsp b/app/startstop-html.lsp
deleted file mode 100644
index 0783483..0000000
--- a/app/startstop-html.lsp
+++ /dev/null
@@ -1,10 +0,0 @@
-<% local data, viewlibrary, page_info = ... %>
-<% require("htmlviewfunctions") %>
-
-<H1>Management</H1>
-<%
-for i,v in ipairs(data.option) do
- data.option[i] = v:gsub("^%l", string.upper)
-end
-htmlviewfunctions.displayform(data, nil, nil, page_info)
-%>
diff --git a/lib/modelfunctions.lua b/lib/modelfunctions.lua
index efc3693..49f040d 100644
--- a/lib/modelfunctions.lua
+++ b/lib/modelfunctions.lua
@@ -24,6 +24,10 @@ function get_startstop(servicename)
local errtxt
if not actions then
errtxt = descr
+ else
+ for i,v in ipairs(actions) do
+ actions[i] = v:gsub("^%l", string.upper)
+ end
end
return cfe({ type="group", label="Management", value={servicename=service}, option=actions, errtxt=errtxt })
end