summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/view/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-04-08 09:20:14 +0200
committerGitHub <noreply@github.com>2019-04-08 09:20:14 +0200
commita4f5b4002567e9a3719d0b29ea99126a0556bff4 (patch)
treed65915e52505ef7a1706584a8c44a2b893872887 /modules/luci-base/luasrc/view/cbi
parent97da884240ce1a75c5a6e82dafba185ba5bb600d (diff)
parentb347bd14620b810e981734c798702ab47774c9db (diff)
Merge pull request #2642 from TDT-AG/pr/20190329-luci-base
luci-base: add cbi tsection error msg option
Diffstat (limited to 'modules/luci-base/luasrc/view/cbi')
-rw-r--r--modules/luci-base/luasrc/view/cbi/tsection.htm5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/tsection.htm b/modules/luci-base/luasrc/view/cbi/tsection.htm
index 547a79332..8f3b7f0ff 100644
--- a/modules/luci-base/luasrc/view/cbi/tsection.htm
+++ b/modules/luci-base/luasrc/view/cbi/tsection.htm
@@ -2,6 +2,11 @@
<% if self.title and #self.title > 0 then -%>
<legend><%=self.title%></legend>
<%- end %>
+ <% if self.error_msg and #self.error_msg > 0 then -%>
+ <div class="cbi-section-error">
+ <%=self.error_msg%>
+ </div>
+ <%- end %>
<% if self.description and #self.description > 0 then -%>
<div class="cbi-section-descr"><%=self.description%></div>
<%- end %>