libs/cbi: attach pcdata() to template scope and use it
[project/luci.git] / libs / cbi / luasrc / view / cbi / cell_valueheader.htm
index 7b8f0a5..0f24f1f 100644 (file)
@@ -12,4 +12,6 @@ You may obtain a copy of the License at
 $Id$
 
 -%>
-<td class="cbi-value-field" id="cbi-<%=self.config.."-"..section.."-"..self.option%>">
+
+<td class="cbi-value-field<% if self.error and self.error[section] then %> cbi-value-error<% end %>">
+<div id="cbi-<%=self.config.."-"..section.."-"..self.option%>">