summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-03-20 20:34:44 +0000
committerSteven Barth <steven@midlink.org>2008-03-20 20:34:44 +0000
commit6e0df95e270dc0ee4c5d10e1d6ac2550f78ff54f (patch)
treef8d30923d291d0d119181eaafc88d35abff6b8ae
parente9461f898cdd8f740accdf8c0c99dd1cfe48d1ea (diff)
* CBI cleanup
-rw-r--r--src/ffluci/view/cbi/lvalue.htm2
-rw-r--r--src/ffluci/view/cbi/nsection.htm2
-rw-r--r--src/ffluci/view/cbi/tsection.htm4
-rw-r--r--src/ffluci/view/cbi/value.htm2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/ffluci/view/cbi/lvalue.htm b/src/ffluci/view/cbi/lvalue.htm
index b7db0def9..eb2eac2fd 100644
--- a/src/ffluci/view/cbi/lvalue.htm
+++ b/src/ffluci/view/cbi/lvalue.htm
@@ -1,7 +1,7 @@
<div class="cbi-lvalue">
<div class="cbi-lvalue-title"><%=self.title%></div>
<div class="cbi-lvalue-field">
-<select name="<%=self.map.config.."."..self.section.."."..self.option%>">
+<select name="<%=self.config.."."..self.section.."."..self.option%>">
<%for k, v in self.list do%>
<option value="<%=k%>"><%=v%></option>
<% end %>
diff --git a/src/ffluci/view/cbi/nsection.htm b/src/ffluci/view/cbi/nsection.htm
index 4607a872c..5badeca56 100644
--- a/src/ffluci/view/cbi/nsection.htm
+++ b/src/ffluci/view/cbi/nsection.htm
@@ -1,4 +1,4 @@
-<div class="cbi-nsection" id="cbi-<%=self.map.config%>-<%=self.sectiontype%>-<%=self.section%>">
+<div class="cbi-nsection" id="cbi-<%=self.config%>-<%=self.sectiontype%>-<%=self.section%>">
<h2><%=self.title%></h2>
<div class="cbi-nsection-descr"><%=self.description%></div>
<% 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 420bfd14a..8c7f0c115 100644
--- a/src/ffluci/view/cbi/tsection.htm
+++ b/src/ffluci/view/cbi/tsection.htm
@@ -7,11 +7,11 @@ for k, v in pairs(allsections) do
end
end
%>
-<div class="cbi-tsection" id="cbi-<%=self.map.config%>-<%=self.sectiontype%>">
+<div class="cbi-tsection" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
<h2><%=self.title%></h2>
<div class="cbi-tsection-descr"><%=self.description%></div>
<% for k, v in pairs(sections) do %>
-<div class="cbi-tsection-node" id="cbi-<%=self.map.config%>-<%=k%>">
+<div class="cbi-tsection-node" id="cbi-<%=self.config%>-<%=k%>">
<% for k, node in ipairs(self.children) do
node.section = k
node:render(k)
diff --git a/src/ffluci/view/cbi/value.htm b/src/ffluci/view/cbi/value.htm
index a39010ac8..cc22c4e56 100644
--- a/src/ffluci/view/cbi/value.htm
+++ b/src/ffluci/view/cbi/value.htm
@@ -1,7 +1,7 @@
<div class="cbi-value">
<div class="cbi-value-title"><%=self.title%></div>
<div class="cbi-value-field">
-<input type="text" name="<%=self.map.config.."."..self.section.."."..self.option%>" value="<%=self:ucivalue()%>" />
+<input type="text" name="<%=self.config.."."..self.section.."."..self.option%>" value="<%=self:ucivalue()%>" />
</div>
<div class="cbi-value-description"><%=self.description%></div>
</div> \ No newline at end of file