2 LuCI - Lua Configuration Interface
3 Copyright
2008 Steven Barth
<steven@midlink.org
>
4 Copyright
2008 Jo-Philipp Wich
<xm@leipzig.freifunk.net
>
6 Licensed under the Apache License, Version
2.0 (the
"License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-
2.0
16 <fieldset class=
"cbi-section" id=
"cbi-<%=self.config%>-<%=self.sectiontype%>">
17 <% if self.title and #self.title
> 0 then -%
>
18 <legend><%=self.title%
></legend>
20 <div class=
"cbi-section-descr"><%=self.description%
></div>
21 <% local isempty = true for i, k in ipairs(self:cfgsections()) do -%
>
22 <% if self.addremove then -%
>
23 <div class=
"cbi-section-remove right">
24 <input type=
"submit" name=
"cbi.rts.<%=self.config%>.<%=k%>" value=
"<%:cbi_del%>" />
27 <% section = k; isempty = false %
>
29 <% if not self.anonymous then -%
>
30 <h3><%=k:upper()%
></h3>
33 <fieldset class=
"cbi-section-node" id=
"cbi-<%=self.config%>-<%=section%>">
39 <% if isempty then -%
>
40 <em><%:cbi_sectempty%
><br /><br /></em>
43 <% if self.addremove then -%
>
44 <% if self.template_addremove then include(self.template_addremove) else -%
>
45 <div class=
"cbi-section-create">
46 <% if self.anonymous then -%
>
47 <input type=
"submit" class=
"cbi-button cbi-button-add" name=
"cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value=
"<%:cbi_add%>" />
49 <% if self.invalid_cts then -%
><div class=
"cbi-section-error"><% end %
>
50 <input type=
"text" class=
"cbi-section-create-name" name=
"cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
51 <input type=
"submit" class=
"cbi-button cbi-button-add" value=
"<%:cbi_add%>" />
52 <% if self.invalid_cts then -%
>
53 <br /><%:cbi_invalid%
></div>