diff options
-rw-r--r-- | app/startstop-html.lsp | 10 | ||||
-rw-r--r-- | lib/modelfunctions.lua | 4 |
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 |