From 94a968e62fba7c6a8bead83db339e525d6a9d39a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 20 Jul 2008 01:34:05 +0000 Subject: * luci/libs/cbi: print a notice in empty tblsections * luci/i18n: added new string to cbi translations --- libs/cbi/luasrc/view/cbi/tblsection.htm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'libs/cbi/luasrc/view') diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm index 6f2029e3bb..44ff589d7c 100644 --- a/libs/cbi/luasrc/view/cbi/tblsection.htm +++ b/libs/cbi/luasrc/view/cbi/tblsection.htm @@ -33,7 +33,10 @@ $Id$   <%- end -%> - <%- for i, k in ipairs(self:cfgsections()) do + <%- local isempty = true + for i, k in ipairs(self:cfgsections()) do + isempty = false + if not self.anonymous then -%> @@ -47,11 +50,17 @@ $Id$ <%-+cbi/ucisection-%> <%- if self.addremove then -%> - + <%- end -%> <%- end -%> + + <%- if isempty then -%> + + <%:cbi_sectempty%> + + <%- end -%> <%- if self.addremove then -%> -- cgit v1.2.3