2008-07-07 22:00:56 +00:00
|
|
|
<%#
|
|
|
|
LuCI - Lua Configuration Interface
|
|
|
|
Copyright 2008 Steven Barth <steven@midlink.org>
|
|
|
|
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
|
|
|
|
-%>
|
2008-04-11 18:29:19 +00:00
|
|
|
<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
|
|
|
|
<h2><%=self.title%></h2>
|
|
|
|
<div class="cbi-section-descr"><%=self.description%></div>
|
2008-04-21 21:27:53 +00:00
|
|
|
<% for i, k in ipairs(self:cfgsections()) do%>
|
2008-04-11 18:29:19 +00:00
|
|
|
<% if self.addremove then %><div class="cbi-section-remove right">
|
2008-06-09 10:10:29 +00:00
|
|
|
<input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="<%:cbi_del%>" />
|
2008-04-11 18:29:19 +00:00
|
|
|
</div><% end %>
|
|
|
|
<% if not self.anonymous then %><h3><%=k%></h3><% end %>
|
|
|
|
<% section = k %>
|
2008-05-14 12:10:44 +00:00
|
|
|
<div class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
|
2008-04-11 18:29:19 +00:00
|
|
|
<%+cbi/ucisection%>
|
2008-05-14 12:10:44 +00:00
|
|
|
</div>
|
|
|
|
<br />
|
2008-04-11 18:29:19 +00:00
|
|
|
<% end %>
|
|
|
|
<% if self.addremove then %>
|
|
|
|
<div class="cbi-section-create">
|
|
|
|
<% if self.anonymous then %>
|
2008-06-09 10:10:29 +00:00
|
|
|
<input type="submit" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add%>" />
|
2008-04-11 18:29:19 +00:00
|
|
|
<% else %>
|
|
|
|
<input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
|
2008-06-09 10:10:29 +00:00
|
|
|
<input type="submit" value="<%:cbi_add%>" />
|
|
|
|
<% end %><% if self.err_invalid then %><div class="cbi-error"><%:cbi_invalid%></div><% end %>
|
2008-04-11 18:29:19 +00:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|