2 LuCI - Lua Configuration Interface
3 Copyright
2009 Jo-Philipp Wich
<xm@subsignal.org
>
5 Licensed under the Apache License, Version
2.0 (the
"License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-
2.0
15 <% for tab, data in pairs(self.tabs) do %
>
16 <div id=
"container.<%=self.config%>.<%=section%>.<%=tab%>"<% if tab ~= self.selected_tab then %
> style=
"display:none"<% end %
>>
17 <% if data.description then %
><div class=
"cbi-tab-descr"><%=data.description%
></div><% end %
>
18 <% self:render_tab(tab, section, scope or {}) %
>
20 <script type=
"text/javascript">cbi_t_add('<%=self.config%
>.<%=section%
>', '<%=tab%
>')
</script>