diff options
Diffstat (limited to 'shorewall-edit-html.lsp')
l---------[-rw-r--r--] | shorewall-edit-html.lsp | 53 |
1 files changed, 1 insertions, 52 deletions
diff --git a/shorewall-edit-html.lsp b/shorewall-edit-html.lsp index f808a72..15b1930 100644..120000 --- a/shorewall-edit-html.lsp +++ b/shorewall-edit-html.lsp @@ -1,52 +1 @@ -<% local form, viewlibrary = ... -require("viewfunctions") -%> - -<% if viewlibrary and viewlibrary.dispatch_component then - viewlibrary.dispatch_component("statusbasic") -end %> - -<H1>CONFIGURATION</H1> -<% local myform = form.config %> -<form action="<%= form.option.script .. "/" .. form.option.prefix .. - form.option.controller .. "/" .. form.option.action %>" method="POST"> - -<H2>EXPERT CONFIGURATION</H2> -<H3>FILE DETAILS</H3> -<DL> -<% -local tags = { "filename","filesize", "mtime", "sumerrors" } -displayinfo(myform,tags,"viewonly") -%> -</DL> - -<% if (form.config.filecontent) then %> - -<H3>FILE CONTENT</H3> -<input type="hidden" value="<%= myform.filename.value %>" name="<%= myform.filename.name %>"> -<% -io.write(html.form[form.config.filecontent.type](form.config.filecontent)) -%> - -<H2>SAVE AND APPLY ABOVE SETTINGS</H2> -<DL> -<% -local tags = { "cmdsave", } -displayinfo(myform,tags) -%> -</DL> - -<% end %> - -<% --- Management buttons -local myform = form.management -local tags = { "start", "stop", "restart" } -if (myform) then - io.write("<H1>MANAGEMENT</H1>\n<DL>") - displaymanagement(myform,tags) - io.write("</DL>") -end -%> -</form> - +../filedetails-html.lsp
\ No newline at end of file |