summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/view/cbi/mvalue.htm
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-03-28 11:00:58 +0000
committerSteven Barth <steven@midlink.org>2008-03-28 11:00:58 +0000
commitfb2a9a328d619ecf329e64cb500ff1385e3f8290 (patch)
tree1a87e35efbfe276d7dbf850fa53fe85578bdbbfe /src/ffluci/view/cbi/mvalue.htm
parent7e9c97808d27443d6d02a163d9ef0a8bc295f396 (diff)
* CBI: Generalized templates
* admin > network > ifaces: Set default value for protocol allowing new sections to be created.
Diffstat (limited to 'src/ffluci/view/cbi/mvalue.htm')
-rw-r--r--src/ffluci/view/cbi/mvalue.htm12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/ffluci/view/cbi/mvalue.htm b/src/ffluci/view/cbi/mvalue.htm
index 7becb4f48b..97a1c4295a 100644
--- a/src/ffluci/view/cbi/mvalue.htm
+++ b/src/ffluci/view/cbi/mvalue.htm
@@ -1,9 +1,7 @@
<%
local v = self:valuelist(section)
%>
- <div class="cbi-value" id="cbi-<%=self.config.."-"..section.."-"..self.option%>">
- <div class="cbi-value-title left"><%=self.title%></div>
- <div class="cbi-value-field">
+<%+cbi/valueheader%>
<% if self.widget == "select" then %>
<select multiple="multiple" name="cbid.<%=self.config.."."..section.."."..self.option%>[]"<% if self.size then %> size="<%=self.size%>"<% end %>>
<%for i, key in pairs(self.keylist) do %>
@@ -18,10 +16,4 @@ local v = self:valuelist(section)
<% if c == self.size then c = 0 %><br />
<% end end %>
<% end %>
- <div class="cbi-value-description inline"><%=self.description%></div>
- </div>
- </div>
- <% if #self.deps > 0 then %><script type="text/javascript">
- <% for j, d in ipairs(self.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option%>", "cbid.<%=self.config.."."..section.."."..d.field%>", "<%=d.value%>");
- <% end %>
- </script><% end %> \ No newline at end of file
+<%+cbi/valuefooter%> \ No newline at end of file