From f89b6d884af1ce1507fea24675b360cdf6e3a1c0 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 10 Apr 2014 07:04:00 +0000 Subject: Changes to use new htmlviewfunctions functions --- iptables-editrule-html.lsp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'iptables-editrule-html.lsp') 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") %> -

<%= html.html_escape(form.label) %>

<% +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) -

Rule Identification

-<% +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) -%> -

Basic Parameters

-<% +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) -%> -

Extended Parameters

-<% +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) %> -

<%= html.html_escape(form.option) %>

-<% htmlviewfunctions.displayformend(form) %> -- cgit v1.2.3