summaryrefslogtreecommitdiffstats
path: root/iptables-editchain-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'iptables-editchain-html.lsp')
-rw-r--r--iptables-editchain-html.lsp15
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)
+%>