summaryrefslogtreecommitdiffstats
path: root/dansguardian-category-html.lsp
diff options
context:
space:
mode:
authorAndreas Brodmann <andreas.brodmann@gmail.com>2008-02-18 12:53:40 +0000
committerAndreas Brodmann <andreas.brodmann@gmail.com>2008-02-18 12:53:40 +0000
commit31569e1a2c3929808a277fce49a2686bbd0a76c7 (patch)
tree3f89078ba10bca979633679fe3127649bd079840 /dansguardian-category-html.lsp
parent1c08ebad2d6e3b2f7c58fe67d7b39fc54407e47e (diff)
downloadacf-dansguardian-31569e1a2c3929808a277fce49a2686bbd0a76c7.tar.bz2
acf-dansguardian-31569e1a2c3929808a277fce49a2686bbd0a76c7.tar.xz
git-svn-id: svn://svn.alpinelinux.org/acf/dansguardian/trunk@730 ab2d0c66-481e-0410-8bed-d214d4d58bedv0.1
Diffstat (limited to 'dansguardian-category-html.lsp')
-rw-r--r--dansguardian-category-html.lsp23
1 files changed, 18 insertions, 5 deletions
diff --git a/dansguardian-category-html.lsp b/dansguardian-category-html.lsp
index 32ef877..bbe1a20 100644
--- a/dansguardian-category-html.lsp
+++ b/dansguardian-category-html.lsp
@@ -44,16 +44,29 @@ until you restart the service.</p>
<h1>Categories</h1>
<p><pre class=error><? io.write( service.cfgerr ) ?></pre></p>
-<h2>Delete Category</h2>
+<h2>Add Category</h2>
+<p>
+To add a category, or to add a file to an existing category, please fill in the corresponding information below.
+(Due to a limitation with DansGuardian, all categories must be lowercase.)
+</p>
+<dl><dt>Category name</dt><dd><input type="text" name="newcat" value=""></dd></dl>
+<dl><dt>Category files</dt><dd><input type="checkbox" name="cattype" value="w">weighted <input type="checkbox" name="cattype" value="b">banned <input type="checkbox" name="cattype" value="e">exception</dd></dl>
+<dl><dt>Action</dt><dd><input class="submit" type="submit" name="cmd" value="add"></dd></dl>
+<p></p>
+<h2>Delete Category</h2>
+<p>
+Select the categories you wish to delete. Please note that this deletes the category, but does not
+delete the link in the corresponding phraselist above. You will also need to edit the phraselist file
+above if you delete a category.
+</p>
<form action="" method="POST">
-<table>
+<dl><dt>Categories available</dt><dd>(please check the ones you want to delete)</dd></dl>
<?
for k,v in ipairs( config ) do
- io.write( "<tr><td><input type=\"checkbox\" name=\"cats\" value=\"" .. v .. "\"> " .. v .. "</td></tr>\n" )
+ io.write( "<dl><dt></dt><dd><input type=\"checkbox\" name=\"cats\" value=\"" .. v .. "\"> " .. v .. "</dd></dl>\n" )
end
?>
-<tr><td><input class="submit" type="submit" name="cmd" value="delete"></td></tr>
-</table>
+<dl><dt>Action</dt><dd><input class="submit" type="submit" name="cmd" value="delete"></dd></dl>
</form>