diff options
Diffstat (limited to 'iptables-editrule-html.lsp')
-rw-r--r-- | iptables-editrule-html.lsp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/iptables-editrule-html.lsp b/iptables-editrule-html.lsp index 42f64df..98f3966 100644 --- a/iptables-editrule-html.lsp +++ b/iptables-editrule-html.lsp @@ -3,25 +3,23 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> -<h1><%= html.html_escape(form.label) %></h1> <% +local header_level = htmlviewfunctions.displaysectionstart(form, page_info) +local header_level2 = htmlviewfunctions.incrementheader(header_level) for name,val in pairs(form.value) do val.name = name end form.value.table.readonly = true form.value.table.type = "text" form.value.chain.readonly = true form.value.position.readonly = true -form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action -htmlviewfunctions.displayformstart(form) -%> +htmlviewfunctions.displayformstart(form, page_info) -<h2>Rule Identification</h2> -<% +htmlviewfunctions.displaysectionstart(cfe({label="Rule Identification"}), page_info, header_level2) htmlviewfunctions.displayformitem(form.value.table) htmlviewfunctions.displayformitem(form.value.chain) htmlviewfunctions.displayformitem(form.value.position) -%> -<h2>Basic Parameters</h2> -<% +htmlviewfunctions.displaysectionend(header_level2) + +htmlviewfunctions.displaysectionstart(cfe({label="Basic Parameters"}), page_info, header_level2) htmlviewfunctions.displayformitem(form.value.jump) htmlviewfunctions.displayformitem(form.value.protocol) htmlviewfunctions.displayformitem(form.value.in_interface) @@ -31,9 +29,9 @@ htmlviewfunctions.displayformitem(form.value.destination) htmlviewfunctions.displayformitem(form.value.goto) htmlviewfunctions.displayformitem(form.value.fragment) htmlviewfunctions.displayformitem(form.value.set_counters) -%> -<h2>Extended Parameters</h2> -<% +htmlviewfunctions.displaysectionend(header_level2) + +htmlviewfunctions.displaysectionstart(cfe({label="Extended Parameters"}), page_info, header_level2) htmlviewfunctions.displayformitem(form.value.comment) htmlviewfunctions.displayformitem(form.value.addrtype_src_type) htmlviewfunctions.displayformitem(form.value.addrtype_dst_type) @@ -49,6 +47,8 @@ htmlviewfunctions.displayformitem(form.value.tcp_sport) htmlviewfunctions.displayformitem(form.value.tcp_dport) htmlviewfunctions.displayformitem(form.value.udp_sport) htmlviewfunctions.displayformitem(form.value.udp_dport) +htmlviewfunctions.displaysectionend(header_level2) + +htmlviewfunctions.displayformend(form, header_level2) +htmlviewfunctions.displaysectionend(header_level) %> -<h2><%= html.html_escape(form.option) %></h2> -<% htmlviewfunctions.displayformend(form) %> |