X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Ffull_valuefooter.htm;h=c069b7f92c33207d57107186b42ba7ff12e80296;hb=7b23839dce0c09953142a5af946ab642027bc3c5;hp=a7b56e29445784573a042e7e361315abf8f9962e;hpb=bdb4bbde130ba4cfb86746dde2905fc12b94175f;p=project%2Fluci.git diff --git a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm index a7b56e294..c069b7f92 100644 --- a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm +++ b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm @@ -13,23 +13,62 @@ $Id$ -%> - <% if #self.description > 0 then -%> -
<%=self.description%>
+ <% if self.description and #self.description > 0 then -%> + <% if not luci.util.instanceof( self, luci.cbi.Flag ) or self.orientation == "horizontal" then -%> +
+ <%- end %> +
+ <%:help%> + <%=self.description%> +
<%- end %> + <%- if self.title and #self.title > 0 then -%> - - <% if self.tag_invalid[section] then -%> -
<%:cbi_invalid%>
- <%- end %> - <% if self.tag_missing[section] then -%> -
<%:cbi_missing%>
- <%- end %> + <%- end -%> -<% if #self.deps > 0 then -%> - <%- end %>