summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-01-12 17:31:19 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-01-12 17:31:19 +0000
commitc730262d146891919a12cc07765805a77e9c4ff2 (patch)
tree38bd8b4299a0a0804f2a9de41b21ae4eb7756716 /libs/cbi/luasrc
parenteabf36ac4c5a3a03b9d25b92d8f2825fde954eb7 (diff)
libs/cbi: implement .sectionhead and .sectiondesc properties to allow labelling the id column in table layouts
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r--libs/cbi/luasrc/view/cbi/tblsection.htm12
1 files changed, 10 insertions, 2 deletions
diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm
index 898645a72b..029ad661cc 100644
--- 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 -%>
- <th>&#160;</th>
+ <%- if self.sectionhead then -%>
+ <th class="cbi-section-table-cell"><%=self.sectionhead%></th>
+ <%- else -%>
+ <th>&#160;</th>
+ <%- end -%>
<%- 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 -%>
- <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>