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
15 <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
16 <h2><%=self.title%></h2>
17 <div class="cbi-section-descr"><%=self.description%></div>
18 <% for i, k in ipairs(self:cfgsections()) do%>
19 <% if self.addremove then %><div class="cbi-section-remove right">
20 <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="<%:cbi_del%>" />
22 <% if not self.anonymous then %><h3><%=k%></h3><% end %>
24 <div class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
29 <% if self.addremove then %>
30 <div class="cbi-section-create">
31 <% if self.anonymous then %>
32 <input type="submit" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add%>" />
34 <input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
35 <input type="submit" value="<%:cbi_add%>" />
36 <% end %><% if self.err_invalid then %><div class="cbi-error"><%:cbi_invalid%></div><% end %>