From e9461f898cdd8f740accdf8c0c99dd1cfe48d1ea Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 20 Mar 2008 20:33:43 +0000 Subject: * CBI updates --- src/ffluci/view/cbi/lvalue.htm | 11 +++++++++++ src/ffluci/view/cbi/map.htm | 8 ++++---- src/ffluci/view/cbi/nsection.htm | 8 ++++---- src/ffluci/view/cbi/tsection.htm | 13 ++++++------- src/ffluci/view/cbi/value.htm | 7 +++++++ 5 files changed, 32 insertions(+), 15 deletions(-) create mode 100644 src/ffluci/view/cbi/lvalue.htm create mode 100644 src/ffluci/view/cbi/value.htm (limited to 'src/ffluci/view/cbi') diff --git a/src/ffluci/view/cbi/lvalue.htm b/src/ffluci/view/cbi/lvalue.htm new file mode 100644 index 0000000000..b7db0def96 --- /dev/null +++ b/src/ffluci/view/cbi/lvalue.htm @@ -0,0 +1,11 @@ +
+
<%=self.title%>
+
+ +
+
<%=self.description%>
+
\ No newline at end of file diff --git a/src/ffluci/view/cbi/map.htm b/src/ffluci/view/cbi/map.htm index 918e455d75..e4f493bd09 100644 --- a/src/ffluci/view/cbi/map.htm +++ b/src/ffluci/view/cbi/map.htm @@ -1,7 +1,7 @@ -
+
"> -

<%=title%>

-
<%=description%>
-<% for k, node in ipairs(children) do node:render() end %> +

<%=self.title%>

+
<%=self.description%>
+<% for k, node in ipairs(self.children) do node:render() end %>
diff --git a/src/ffluci/view/cbi/nsection.htm b/src/ffluci/view/cbi/nsection.htm index 4a47c7dad4..4607a872cc 100644 --- a/src/ffluci/view/cbi/nsection.htm +++ b/src/ffluci/view/cbi/nsection.htm @@ -1,5 +1,5 @@ -
-

<%=title%>

-
<%=description%>
-<% for k, node in ipairs(children) do node:render() end %> +
+

<%=self.title%>

+
<%=self.description%>
+<% for k, node in ipairs(self.children) do node:render() end %>
diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm index 2c25500f8a..420bfd14a8 100644 --- a/src/ffluci/view/cbi/tsection.htm +++ b/src/ffluci/view/cbi/tsection.htm @@ -1,6 +1,5 @@ <% -require("ffluci.model.uci") -local allsections = ffluci.model.uci.show(map) +local allsections = self.map:read() local sections = {} for k, v in pairs(allsections) do if v[".type"] == sectiontype then @@ -8,12 +7,12 @@ for k, v in pairs(allsections) do end end %> -
-

<%=title%>

-
<%=description%>
+
+

<%=self.title%>

+
<%=self.description%>
<% for k, v in pairs(sections) do %> -
-<% for k, node in ipairs(children) do +
+<% for k, node in ipairs(self.children) do node.section = k node:render(k) end %> diff --git a/src/ffluci/view/cbi/value.htm b/src/ffluci/view/cbi/value.htm new file mode 100644 index 0000000000..a39010ac8d --- /dev/null +++ b/src/ffluci/view/cbi/value.htm @@ -0,0 +1,7 @@ +
+
<%=self.title%>
+
+" value="<%=self:ucivalue()%>" /> +
+
<%=self.description%>
+
\ No newline at end of file -- cgit v1.2.3