From 7a094cf04dd3fe002bf568e5bdbc29ddd833fb29 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 22 Feb 2012 20:45:51 +0000 Subject: Changed startstop to be a standard form by creating two model functions and deleting the special controller function --- app/startstop-html.lsp | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) (limited to 'app') diff --git a/app/startstop-html.lsp b/app/startstop-html.lsp index c98208b..0783483 100644 --- a/app/startstop-html.lsp +++ b/app/startstop-html.lsp @@ -1,22 +1,10 @@ <% local data, viewlibrary, page_info = ... %> +<% require("htmlviewfunctions") %>

Management

- -<% if data.value.result then %> -

Previous action result

-<% if data.value.result.value ~= "" then %> -

<%= string.gsub(html.html_escape(data.value.result.value), "\n", "
") %>

-<% end if data.value.result.errtxt then %> -

<%= string.gsub(html.html_escape(data.value.result.errtxt), "\n", "
") %>

-<% end end %> - -
-
" method="POST"> -
Program control-panel
-
-<% for i,act in ipairs(data.value.actions.value) do %> - -<% end %> -
-
-
+<% +for i,v in ipairs(data.option) do + data.option[i] = v:gsub("^%l", string.upper) +end +htmlviewfunctions.displayform(data, nil, nil, page_info) +%> -- cgit v1.2.3