contrib: remove recursive deps between theme-bootstrap and luci-base
[project/luci.git] / modules / base / luasrc / luasrc / view / cbi / full_valuefooter.htm
1                 <% if self.description and #self.description > 0 then -%>
2                         <% if not luci.util.instanceof(self, luci.cbi.DynamicList) and (not luci.util.instanceof(self, luci.cbi.Flag) or self.orientation == "horizontal") then -%>
3                                 <br />
4                         <%- end %>
5                         <div class="cbi-value-description">
6                                 <span class="cbi-value-helpicon"><img src="<%=resource%>/cbi/help.gif" alt="<%:help%>" /></span>
7                                 <%=self.description%>
8                         </div>
9                 <%- end %>
10         <%- if self.title and #self.title > 0 then -%>
11         </div>
12         <%- end -%>
13 </div>
14
15
16 <% if #self.deps > 0 or #self.subdeps > 0 then -%>
17         <script type="text/javascript" id="cbip-<%=self.config.."-"..section.."-"..self.option%>">
18                 <% for j, d in ipairs(self.subdeps) do -%>
19                         cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option..d.add%>", {
20                 <%-
21                         for k,v in pairs(d.deps) do
22                                 local depk
23                                 if k:find("!", 1, true) then
24                                         depk = string.format('"%s"', k)
25                                 elseif k:find(".", 1, true) then
26                                         depk = string.format('"cbid.%s"', k)
27                                 else
28                                         depk = string.format('"cbid.%s.%s.%s"', self.config, section, k)
29                                 end
30                 -%>
31                         <%-= depk .. ":" .. string.format("%q", v)-%>
32                         <%-if next(d.deps, k) then-%>,<%-end-%>
33                 <%-
34                         end
35                 -%>
36                         }, "cbip-<%=self.config.."-"..section.."-"..self.option..d.add%>");
37                 <%- end %>
38                 <% for j, d in ipairs(self.deps) do -%>
39                         cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option..d.add%>", {
40                 <%-
41                         for k,v in pairs(d.deps) do
42                                 local depk
43                                 if k:find("!", 1, true) then
44                                         depk = string.format('"%s"', k)
45                                 elseif k:find(".", 1, true) then
46                                         depk = string.format('"cbid.%s"', k)
47                                 else
48                                         depk = string.format('"cbid.%s.%s.%s"', self.config, section, k)
49                                 end
50                 -%>
51                         <%-= depk .. ":" .. string.format("%q", v)-%>
52                         <%-if next(d.deps, k) then-%>,<%-end-%>
53                 <%-
54                         end
55                 -%>
56                         }, "cbip-<%=self.config.."-"..section.."-"..self.option..d.add%>");
57                 <%- end %>
58         </script>
59 <%- end %>