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-startstop-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-startstop-html.lsp')
-rw-r--r-- | iptables-startstop-html.lsp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/iptables-startstop-html.lsp b/iptables-startstop-html.lsp new file mode 100644 index 0000000..caa0b96 --- /dev/null +++ b/iptables-startstop-html.lsp @@ -0,0 +1,25 @@ +<% local data, viewlibrary, page_info = ... %> + +<H1>Management</H1> +<DL> +<form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>" method="POST"> +<DT>Load rules from rules file</DT> +<DD> +<input class="submit" type="submit" name="action" value="Reload"> +</DD> +<DT>Save current rules to rules file</DT> +<DD> +<input class="submit" type="submit" name="action" value="Save"> +</DD> +</form> + +<% if data.value.result then %> +<DT>Previous action result</DT> +<DD> +<% if data.value.result.value ~= "" then %> +<P CLASS='descr'><%= string.gsub(data.value.result.value, "\n", "<BR>") %></P> +<% end if data.value.result.errtxt then %> +<P CLASS='error'><%= string.gsub(data.value.result.errtxt, "\n", "<BR>") %></P> +<% end end %> +</DD> +</DL> |