summaryrefslogtreecommitdiffstats
path: root/interfaces-update-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces-update-html.lsp')
-rw-r--r--interfaces-update-html.lsp14
1 files changed, 3 insertions, 11 deletions
diff --git a/interfaces-update-html.lsp b/interfaces-update-html.lsp
index ef53642..09743f3 100644
--- a/interfaces-update-html.lsp
+++ b/interfaces-update-html.lsp
@@ -4,7 +4,6 @@
<form action="<?= form.option.script .. "/" .. form.option.prefix ..
form.option.controller .. "/" .. form.option.action ..
form.option.extra ?>" method="POST">
-<table>
<? local myform = form.value
@@ -18,19 +17,12 @@ local tags = { "comment", "method", "address", "netmask", "gateway",
for i,v in pairs(tags) do
local val = myform[v] ?>
-<tr><td><? if (val.label) then io.write(val.label) else io.write (v) end ?></td><td>
+<dt><? if (val.label) then io.write(val.label) else io.write (v) end ?></dt>
<? if val.name == "" then
val.name = v
end
-
- if val.type == "longtext" then
- val.cols = 60
- val.rows = 3
- end
-
?>
- <?= html.form[val.type](val) ?>
-</td></tr>
+ <dd><?= html.form[val.type](val) ?></dd>
<? end ?>
-</table>
</form>
+