Merge pull request #2642 from TDT-AG/pr/20190329-luci-base

luci-base: add cbi tsection error msg option
This commit is contained in:
Jo-Philipp Wich 2019-04-08 09:20:14 +02:00 committed by GitHub
commit a4f5b40025
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 %>