diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-04-08 09:20:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 09:20:14 +0200 |
commit | a4f5b4002567e9a3719d0b29ea99126a0556bff4 (patch) | |
tree | d65915e52505ef7a1706584a8c44a2b893872887 | |
parent | 97da884240ce1a75c5a6e82dafba185ba5bb600d (diff) | |
parent | b347bd14620b810e981734c798702ab47774c9db (diff) |
Merge pull request #2642 from TDT-AG/pr/20190329-luci-base
luci-base: add cbi tsection error msg option
-rw-r--r-- | modules/luci-base/luasrc/view/cbi/tsection.htm | 5 |
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 %> |