diff options
author | Alexander Poslavsky <alexander.poslavsky@gmail.com> | 2007-11-02 07:48:38 +0000 |
---|---|---|
committer | Alexander Poslavsky <alexander.poslavsky@gmail.com> | 2007-11-02 07:48:38 +0000 |
commit | 2f6b7570cdf277f1c3889464fd7705b089e1eac4 (patch) | |
tree | 296e0a730ac80a32f1ff4cd0e710484d93c9cf9b /app/shorewall-read-html.lsp | |
parent | b418c71c42d0fea752d3e686d269dec0f943d31b (diff) | |
download | acf-shorewall-2f6b7570cdf277f1c3889464fd7705b089e1eac4.tar.bz2 acf-shorewall-2f6b7570cdf277f1c3889464fd7705b089e1eac4.tar.xz |
shorewall directory files, show changes
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@250 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/shorewall-read-html.lsp')
-rw-r--r-- | app/shorewall-read-html.lsp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/app/shorewall-read-html.lsp b/app/shorewall-read-html.lsp index cf73662..c4732a0 100644 --- a/app/shorewall-read-html.lsp +++ b/app/shorewall-read-html.lsp @@ -1,18 +1,24 @@ -<? -local view = ... -?><h1>Edit</h1><table border=0><? -local sct="" +<? local view = ... ?> + +<? --Status Block + +?> + +<h1>Edit</h1> +<table border=0> +<? local sct="" for i,item in ipairs(view.list) do if item.section ~= sct then - ?><tr><td colspan='2'><h2><?= item.section ?></td></tr><? + ?><tr><td colspan='3'><h2><?= item.section ?></td></tr><? sct = item.section end - ?><tr><td><?= html.link{ + ?><tr><td><?= item.status or '' ?><? + ?><td><?= html.link{ value = view.script .. view.prefix .. view.controller .. "/" .. view.action .. "?id=" .. tostring(item.id), label=item.name } ?></td><td><?= item.descr ?></td></tr><? -end -?></table> +end ?> +</table> |