summaryrefslogtreecommitdiffstats
path: root/tinydns-config-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-03-08 11:42:14 +0000
committerMika Havela <mika.havela@gmail.com>2008-03-08 11:42:14 +0000
commit1a0827a2fcd4aa16176ebc7ecd593305ab70088e (patch)
tree145e4d4fb40f1da50f41beb1ba729baa912a759b /tinydns-config-html.lsp
parentb9f1647db7853c94fb9530f5bcc86bd8d88d333a (diff)
downloadacf-tinydns-1a0827a2fcd4aa16176ebc7ecd593305ab70088e.tar.bz2
acf-tinydns-1a0827a2fcd4aa16176ebc7ecd593305ab70088e.tar.xz
Saving work for today.
Hide [New] objects because they don't work for the moment. When selecting a record and edit it, you get to see the whole record (still not editable). git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@830 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tinydns-config-html.lsp')
-rwxr-xr-xtinydns-config-html.lsp25
1 files changed, 14 insertions, 11 deletions
diff --git a/tinydns-config-html.lsp b/tinydns-config-html.lsp
index 49cfa8c..f0628e9 100755
--- a/tinydns-config-html.lsp
+++ b/tinydns-config-html.lsp
@@ -39,17 +39,18 @@ local tags = { "status", "version", }
displayinfo(myform,tags,"viewonly")
?>
+<form name="cmd" action="<?= form.option.link ?>/<?= form.option.action ?>" method="POST">
<H1>CONFIG</H1>
<H2>General settings</H2>
<?
local myform = form.config
-local tags = { "listen","cmdeditlisten", }
+local tags = { "listen","listen_cmd", }
displayinfo(myform,tags)
?>
<H2>Locations</H2>
<?
-local tags = { "locations","cmdeditlocations", "cmdnewlocations", }
+local tags = { "locations","locations_cmd", "cmdnewlocations", }
displayinfo(myform,tags)
?>
@@ -57,58 +58,60 @@ displayinfo(myform,tags)
<H2>Records</H2>
<H3><? io.write(tostring(form.config.nsourdomain.label) or "NS record") ?></H3>
<?
-local tags = { "nsourdomain","cmdeditnsourdomain", }
+local tags = { "nsourdomain","nsourdomain_cmd", }
displayinfo(myform,tags)
?>
<H3><? io.write(tostring(form.config.nsdomain.label) or "NS record") ?></H3>
<?
-local tags = { "nsdomain","cmdeditnsdomain", }
+local tags = { "nsdomain","nsdomain_cmd", }
displayinfo(myform,tags)
?>
<H3><? io.write(tostring(form.config.host.label) or "Hosts record") ?></H3>
<?
-local tags = { "host","cmdedithost", }
+local tags = { "host","host_cmd", }
displayinfo(myform,tags)
?>
<H3><? io.write(tostring(form.config.alias.label) or "Alias record") ?></H3>
<?
-local tags = { "alias","cmdeditalias", }
+local tags = { "alias","alias_cmd", }
displayinfo(myform,tags)
?>
<H3><? io.write(tostring(form.config.mx.label) or "MX record") ?></H3>
<?
-local tags = { "mx","cmdeditmx", }
+local tags = { "mx","mx_cmd", }
displayinfo(myform,tags)
?>
<H3><? io.write(tostring(form.config.ptr.label) or "PTR record") ?></H3>
<?
-local tags = { "ptr","cmdeditptr", }
+local tags = { "ptr","ptr_cmd", }
displayinfo(myform,tags)
?>
<H3><? io.write(tostring(form.config.cname.label) or "CNAME record") ?></H3>
<?
-local tags = { "cname","cmdeditcname", }
+local tags = { "cname","cname_cmd", }
displayinfo(myform,tags)
?>
<H3><? io.write(tostring(form.config.soa.label) or "SOA record") ?></H3>
<?
-local tags = { "soa","cmdeditsoa", }
+local tags = { "soa","soa_cmd", }
displayinfo(myform,tags)
?>
<H3><? io.write(tostring(form.config.generic.label) or "GENERIC record") ?></H3>
<?
-local tags = { "generic","cmdeditgeneric", }
+local tags = { "generic","generic_cmd", }
displayinfo(myform,tags)
?>
+</form>
+
<? --[[ ?>
<H1>DEGUGGING</H1>
<?