projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eabf36a
)
libs/cbi: implement .sectionhead and .sectiondesc properties to allow labelling the...
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 12 Jan 2009 17:31:19 +0000
(17:31 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 12 Jan 2009 17:31:19 +0000
(17:31 +0000)
libs/cbi/luasrc/view/cbi/tblsection.htm
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/view/cbi/tblsection.htm
b/libs/cbi/luasrc/view/cbi/tblsection.htm
index
898645a
..
029ad66
100644
(file)
--- a/
libs/cbi/luasrc/view/cbi/tblsection.htm
+++ b/
libs/cbi/luasrc/view/cbi/tblsection.htm
@@
-31,7
+31,11
@@
end
<table class="cbi-section-table">
<tr class="cbi-section-table-titles">
<%- if not self.anonymous then -%>
<table class="cbi-section-table">
<tr class="cbi-section-table-titles">
<%- if not self.anonymous then -%>
- <th> </th>
+ <%- if self.sectionhead then -%>
+ <th class="cbi-section-table-cell"><%=self.sectionhead%></th>
+ <%- else -%>
+ <th> </th>
+ <%- end -%>
<%- end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<th class="cbi-section-table-cell">
<%- end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<th class="cbi-section-table-cell">
@@
-45,7
+49,11
@@
end
</tr>
<tr class="cbi-section-table-descr">
<%- if not self.anonymous then -%>
</tr>
<tr class="cbi-section-table-descr">
<%- if not self.anonymous then -%>
- <th></th>
+ <%- if self.sectiondesc then -%>
+ <th class="cbi-section-table-cell"><%=self.sectiondesc%></th>
+ <%- else -%>
+ <th></th>
+ <%- end -%>
<%- end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<th class="cbi-section-table-cell"><%=k.description%></th>
<%- end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<th class="cbi-section-table-cell"><%=k.description%></th>