projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libs/cbi: attach pcdata() to template scope and use it
[project/luci.git]
/
libs
/
cbi
/
luasrc
/
view
/
cbi
/
full_valueheader.htm
diff --git
a/libs/cbi/luasrc/view/cbi/full_valueheader.htm
b/libs/cbi/luasrc/view/cbi/full_valueheader.htm
index
ce079ca
..
cbeda75
100644
(file)
--- a/
libs/cbi/luasrc/view/cbi/full_valueheader.htm
+++ b/
libs/cbi/luasrc/view/cbi/full_valueheader.htm
@@
-13,10
+13,12
@@
$Id$
-%>
-%>
-<div class="cbi-value" id="cbi-<%=self.config.."-"..section.."-"..self.option%>">
+<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) %>>
<label class="cbi-value-title"<%= attr("for", cbid) %>>
- <%- if self.titleref then -%><a class="cbi-title-ref" href="<%=self.titleref%>"><%- end -%>
+ <%- if self.titleref then -%><a
title="<%=self.titledesc or translate('cbi_gorel')%>"
class="cbi-title-ref" href="<%=self.titleref%>"><%- end -%>
<%-=self.title-%>
<%- if self.titleref then -%></a><%- end -%>
</label>
<div class="cbi-value-field">
<%-=self.title-%>
<%- if self.titleref then -%></a><%- end -%>
</label>
<div class="cbi-value-field">
+ <%- end -%>