all: change most translate statements to new format, some need manual cleanup
[project/luci.git] / libs / cbi / luasrc / view / cbi / full_valueheader.htm
index 566e236..f757d7f 100644 (file)
@@ -13,6 +13,12 @@ $Id$
 
 -%>
 
-<div class="cbi-value" id="cbi-<%=self.config.."-"..section.."-"..self.option%>">
-       <label class="cbi-value-title"<%= attr("for", cbid) %>><%=self.title%></label>
+<div class="cbi-value<% if self.error and self.error[section] then %> cbi-value-error<% end %>" id="cbi-<%=self.config.."-"..section.."-"..self.option%>">
+       <%- if self.title and #self.title > 0 then -%>
+       <label class="cbi-value-title"<%= attr("for", cbid) %>>
+       <%- if self.titleref then -%><a title="<%=self.titledesc or translate(' ')%>" class="cbi-title-ref" href="<%=self.titleref%>"><%- end -%>
+               <%-=self.title-%>
+       <%- if self.titleref then -%></a><%- end -%>
+       </label>
                <div class="cbi-value-field">
+       <%- end -%>