From f989f6ee00aad6bc655948df5add6df772c51f92 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 18 Mar 2008 22:08:46 +0000 Subject: * CBI updates --- src/ffluci/view/cbi/map.htm | 7 +++++++ src/ffluci/view/cbi/nsection.htm | 5 +++++ src/ffluci/view/cbi/tsection.htm | 22 ++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 src/ffluci/view/cbi/map.htm create mode 100644 src/ffluci/view/cbi/nsection.htm create mode 100644 src/ffluci/view/cbi/tsection.htm (limited to 'src/ffluci/view') diff --git a/src/ffluci/view/cbi/map.htm b/src/ffluci/view/cbi/map.htm new file mode 100644 index 000000000..918e455d7 --- /dev/null +++ b/src/ffluci/view/cbi/map.htm @@ -0,0 +1,7 @@ +
+
"> +

<%=title%>

+
<%=description%>
+<% for k, node in ipairs(children) do node:render() end %> +
+
diff --git a/src/ffluci/view/cbi/nsection.htm b/src/ffluci/view/cbi/nsection.htm new file mode 100644 index 000000000..4a47c7dad --- /dev/null +++ b/src/ffluci/view/cbi/nsection.htm @@ -0,0 +1,5 @@ +
+

<%=title%>

+
<%=description%>
+<% for k, node in ipairs(children) do node:render() end %> +
diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm new file mode 100644 index 000000000..2c25500f8 --- /dev/null +++ b/src/ffluci/view/cbi/tsection.htm @@ -0,0 +1,22 @@ +<% +require("ffluci.model.uci") +local allsections = ffluci.model.uci.show(map) +local sections = {} +for k, v in pairs(allsections) do + if v[".type"] == sectiontype then + sections[k] = v + end +end +%> +
+

<%=title%>

+
<%=description%>
+<% for k, v in pairs(sections) do %> +
+<% for k, node in ipairs(children) do + node.section = k + node:render(k) +end %> +
+<% end %> +
-- cgit v1.2.3