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 -%
>
5 <div class=
"cbi-value-description">
6 <span class=
"cbi-value-helpicon"><img src=
"<%=resource%>/cbi/help.gif" alt=
"<%:help%>" /></span>
10 <%- if self.title and #self.title
> 0 then -%
>
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%>", {
21 for k,v in pairs(d.deps) do
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)
28 depk = string.format('
"cbid.%s.%s.%s"', self.config, section, k)
31 <%-= depk ..
":" .. string.format(
"%q", v)-%
>
32 <%-if next(d.deps, k) then-%
>,<%-end-%
>
36 },
"cbip-<%=self.config.."-
"..section.."-
"..self.option..d.add%>");
38 <% for j, d in ipairs(self.deps) do -%
>
39 cbi_d_add(
"cbi-<%=self.config.."-
"..section.."-
"..self.option..d.add%>", {
41 for k,v in pairs(d.deps) do
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)
48 depk = string.format('
"cbid.%s.%s.%s"', self.config, section, k)
51 <%-= depk ..
":" .. string.format(
"%q", v)-%
>
52 <%-if next(d.deps, k) then-%
>,<%-end-%
>
56 },
"cbip-<%=self.config.."-
"..section.."-
"..self.option..d.add%>");