all: change most translate statements to new format, some need manual cleanup
[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-2009 Jo-Philipp Wich <xm@subsignal>
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
16 <% if self:cfgvalue(self.section) then section = self.section %>
17         <fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=section%>">
18                 <% if self.title and #self.title > 0 then -%>
19                         <legend><%=self.title%></legend>
20                 <%- end %>
21                 <% if self.description and #self.description > 0 then -%>
22                         <div class="cbi-section-descr"><%=self.description%></div>
23                 <%- end %>
24                 <% if self.addremove then -%>
25                         <div class="cbi-section-remove right">
26                                 <input type="submit" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:Delete%>" />
27                         </div>
28                 <%- end %>
29                 <%+cbi/tabmenu%>
30                 <div class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
31                         <%+cbi/ucisection%>
32                 </div>
33                 <br />
34         </fieldset>
35 <% elseif self.addremove then %>
36         <% if self.template_addremove then include(self.template_addremove) else -%>
37         <fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>">
38                 <% if self.title and #self.title > 0 then -%>
39                         <legend><%=self.title%></legend>
40                 <%- end %>
41                 <div class="cbi-section-descr"><%=self.description%></div>
42                 <input type="submit" class="cbi-button-add" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:Add%>" />
43         </fieldset>
44         <%- end %>
45 <% end %>
46 <!-- /nsection -->