From: Jo-Philipp Wich Date: Mon, 12 Jan 2009 17:31:19 +0000 (+0000) Subject: libs/cbi: implement .sectionhead and .sectiondesc properties to allow labelling the... X-Git-Tag: 0.9.0~808 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=c730262d146891919a12cc07765805a77e9c4ff2 libs/cbi: implement .sectionhead and .sectiondesc properties to allow labelling the id column in table layouts --- diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm index 898645a72..029ad661c 100644 --- a/libs/cbi/luasrc/view/cbi/tblsection.htm +++ b/libs/cbi/luasrc/view/cbi/tblsection.htm @@ -31,7 +31,11 @@ end <%- if not self.anonymous then -%> - + <%- if self.sectionhead then -%> + + <%- else -%> + + <%- end -%> <%- end -%> <%- for i, k in pairs(self.children) do if not k.optional then -%> <%- if not self.anonymous then -%> - + <%- if self.sectiondesc then -%> + + <%- else -%> + + <%- end -%> <%- end -%> <%- for i, k in pairs(self.children) do if not k.optional then -%>
 <%=self.sectionhead%>  @@ -45,7 +49,11 @@ end
<%=self.sectiondesc%><%=k.description%>