Added copyright-tags to templates
[project/luci.git] / libs / cbi / luasrc / view / cbi / nsection.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
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
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 -%>
15 <% if self:cfgvalue(self.section) then
16 section = self.section %>
17                                 <div class="cbi-section" id="cbi-<%=self.config%>-<%=section%>">
18                                         <h2><%=self.title%></h2>
19                                         <div class="cbi-section-descr"><%=self.description%></div>
20                                         <% if self.addremove then %><div class="cbi-section-remove right">
21                                                 <input type="submit" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:cbi_del%>" />
22                                         </div><% end %>
23 <div class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
24 <%+cbi/ucisection%>
25 </div>
26 <br />
27                                 </div>
28 <% elseif self.addremove then %>
29                                 <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>">
30                                         <h2><%=self.title%></h2>
31                                         <div class="cbi-section-descr"><%=self.description%></div>
32                                         <input type="submit" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:cbi_add%>" />
33                                 </div>
34 <% end %>