summaryrefslogtreecommitdiffstats
path: root/shorewall-edit-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-03-03 16:54:31 +0000
committerMika Havela <mika.havela@gmail.com>2008-03-03 16:54:31 +0000
commit8c41156d76be7332fd34d1ab18a078510745b81a (patch)
treeb6c940129b860f8844e6c031e47ef9120b673a45 /shorewall-edit-html.lsp
parent7c698f58e0661639b5bff855e82a76fff8c90b65 (diff)
downloadacf-shorewall-8c41156d76be7332fd34d1ab18a078510745b81a.tar.bz2
acf-shorewall-8c41156d76be7332fd34d1ab18a078510745b81a.tar.xz
Cleaning up the code a bit.
Adding some examples into the config-tab. Minor modifications on the view-files. git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@794 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'shorewall-edit-html.lsp')
-rw-r--r--shorewall-edit-html.lsp10
1 files changed, 6 insertions, 4 deletions
diff --git a/shorewall-edit-html.lsp b/shorewall-edit-html.lsp
index bc9b409..c5f9e6e 100644
--- a/shorewall-edit-html.lsp
+++ b/shorewall-edit-html.lsp
@@ -8,7 +8,6 @@ io.write("</span>")
?>
<?
function informationform(myform,tags)
- io.write("<DL>")
for k,v in pairs(tags) do
if (myform[v]) then
local val = myform[v]
@@ -22,12 +21,10 @@ function informationform(myform,tags)
io.write("\t\t</DD>\n")
end
end
- io.write("</DL>")
end
?>
<?
function configform(myform,tags)
- io.write("<DL>")
for k,v in pairs(tags) do
if (myform[v]) then
local val = myform[v]
@@ -41,17 +38,18 @@ function configform(myform,tags)
io.write("\t\t</DD>\n")
end
end
- io.write("</DL>")
end
?>
<H1>SYSTEM INFO</H1>
+<DL>
<?
local myform = form.status
local tags = { "status", "version", }
informationform(myform,tags)
?>
+</DL>
<H1>CONFIGURATION</H1>
<? local myform = form.config ?>
@@ -60,6 +58,7 @@ informationform(myform,tags)
<H2>EXPERT CONFIGURATION</H2>
<H3>FILE DETAILS</H3>
+<DL>
<?
local tags = { "filename", }
informationform(myform,tags)
@@ -71,6 +70,7 @@ informationform(myform,tags)
local tags = { "filesize", "mtime", "sumerrors" }
informationform(myform,tags)
?>
+</DL>
<H3>FILE CONTENT</H3>
<input type="hidden" value="<?= myform.filename.value ?>" name="<?= myform.filename.name ?>">
@@ -79,10 +79,12 @@ io.write(html.form[form.config.filecontent.type](form.config.filecontent))
?>
<H2>SAVE AND APPLY ABOVE SETTINGS</H2>
+<DL>
<?
local tags = { "cmdsave", }
configform(myform,tags)
?>
+</DL>
</form>
<? end ?>