From c730262d146891919a12cc07765805a77e9c4ff2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 12 Jan 2009 17:31:19 +0000 Subject: libs/cbi: implement .sectionhead and .sectiondesc properties to allow labelling the id column in table layouts --- libs/cbi/luasrc/view/cbi/tblsection.htm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'libs/cbi') 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 -%> -- cgit v1.2.3
 <%=self.sectionhead%>  @@ -45,7 +49,11 @@ end
<%=self.sectiondesc%><%=k.description%>