<% local data, viewlibrary, page_info = ... %> <% local reverseactions = {} data.value.actions = data.value.actions or {} local actions = data.value.actions.value or {"start", "stop", "restart"} for i,act in ipairs(actions) do reverseactions[act] = i end %>

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
<% if reverseactions.start then %>><% end %> <% if reverseactions.stop then %>><% end %> <% if reverseactions.restart then %>><% end %> <% if reverseactions.reload then %>><% end %>