summaryrefslogtreecommitdiffstats
path: root/shorewall-config-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-03-07 07:21:31 +0000
committerMika Havela <mika.havela@gmail.com>2008-03-07 07:21:31 +0000
commit7c839a51b0c941c0415d38918a6b33469d73a8ca (patch)
tree48c30c4e3b1f4a2edab8c84e854ab63c88fb103c /shorewall-config-html.lsp
parent41d13da850347a5c2691af7e4d4389fec227188a (diff)
downloadacf-shorewall-7c839a51b0c941c0415d38918a6b33469d73a8ca.tar.bz2
acf-shorewall-7c839a51b0c941c0415d38918a6b33469d73a8ca.tar.xz
Changed the 'Restart' button to a 'Check' button on the config-tab.
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@824 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'shorewall-config-html.lsp')
-rw-r--r--shorewall-config-html.lsp33
1 files changed, 7 insertions, 26 deletions
diff --git a/shorewall-config-html.lsp b/shorewall-config-html.lsp
index 3f8eb8d..0a54950 100644
--- a/shorewall-config-html.lsp
+++ b/shorewall-config-html.lsp
@@ -100,34 +100,15 @@ displayinfo(myform,tags)
</form>
-
+<form name="cmd" action="<?= form.option.link ?>/<?= form.option.action ?>" method="POST">
+<H1>MANAGEMENT</H1>
+<dl>
<?
-local cmdform = form.management
-local tags = { "restart" }
-if (cmdform) and (cmdform[tags[1]]) then
+local tags = { "check_cmd",}
+displayinfo(myform,tags)
?>
- <form name="management" action="" method="POST">
- <H1>MANAGEMENT</H1>
- <dl>
- <dt><?= cmdform[tags[1]]["label"] ?></dt>
- <dd>
- <? for k,v in pairs(tags) do ?>
- <? if (cmdform[v]) then ?>
- <? io.write(html.form[cmdform[v].type](cmdform[v])) ?>
- <? end ?>
- <? end ?>
- </dd>
-
- <? if (form.cmdmanagement) and (#form.cmdmanagement.descr > 0) then ?>
- <dt>Previous action result</dt>
- <dd><pre><?= form.cmdmanagement.descr ?></pre></dd>
- <? end ?>
- </dl>
- </form>
-
-<? end ?>
-
-<? --]] ?>
+</dl>
+</form>
<?
--[[ DEBUG INFORMATION