CBI-UVL Validation Integration part #1
[project/luci.git] / libs / cbi / luasrc / view / cbi / ucisection.htm
index 1d318f7..c245940 100644 (file)
@@ -16,6 +16,13 @@ $Id$
 <% self:render_children(section, scope or {}) %>
 
 <% if #self.optionals[section] > 0 or self.dynamic then %>
+       <% if self.tag_deperror[section] then -%>
+               <div class="cbi-error"><%:cbi_deperror%></div>
+       <% elseif self.tag_invalid[section] then -%>
+               <div class="cbi-error"><%:cbi_invalid_section%></div>
+       <%- elseif self.tag_error[section] then -%>
+               <div class="cbi-error"><%=self.tag_error[section]%></div>
+       <%- end %>
        <div class="cbi-optionals">
                <% if self.dynamic then %>
                        <input type="text" name="cbi.opt.<%=self.config%>.<%=section%>" />