diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-11-03 21:30:32 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-11-03 21:30:32 +0000 |
commit | fc670b19af9f6dd4027dcec0fc6cc0035860f9e2 (patch) | |
tree | b86af704ba7bbef308e28014f3c0162bf2fea627 /iptables-editchain-html.lsp | |
download | acf-iptables-fc670b19af9f6dd4027dcec0fc6cc0035860f9e2.tar.bz2 acf-iptables-fc670b19af9f6dd4027dcec0fc6cc0035860f9e2.tar.xz |
Created iptables ACF to directly view / edit rules. Status, view, and expert work. Form to edit / create rules not functional yet.
git-svn-id: svn://svn.alpinelinux.org/acf/iptables/trunk@1575 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'iptables-editchain-html.lsp')
-rw-r--r-- | iptables-editchain-html.lsp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/iptables-editchain-html.lsp b/iptables-editchain-html.lsp new file mode 100644 index 0000000..eaa1bfb --- /dev/null +++ b/iptables-editchain-html.lsp @@ -0,0 +1,15 @@ +<% local form, viewlibrary, page_info = ... +require("viewfunctions") +%> + +<H1><%= form.label %></H1> +<% + form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action + if page_info.action == "editchain" then + form.value.table.contenteditable = false + form.value.table.type = "text" + form.value.chain.contenteditable = false + end + local order = {"table", "chain", "policy"} + displayform(form, order) +%> |