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 <form method=
"post" action=
"<%=luci.http.getenv("REQUEST_URI
")%>">
18 <script type=
"text/javascript" src=
"<%=resource%>/cbi.js"></script>
19 <input type=
"hidden" name=
"cbi.submit" value=
"1" />
20 <input type=
"submit" value=
"<%:save%>" class=
"hidden" />
22 <div class=
"cbi-map" id=
"cbi-<%=self.config%>">
23 <h1><%=self.title%
></h1>
24 <div class=
"cbi-map-descr"><%=self.description%
></div>
25 <fieldset class=
"cbi-section">
26 <div class=
"cbi-section-node">
27 <% self:render_children(
1, scope or {}) %
>
34 <%- if self.submit ~= false then %
>
35 <input type=
"submit" value=
"
36 <%- if not self.submit then -%><%-:submit-%><%-else-%><%=self.submit%><%end%>
39 <%- if self.reset ~= false then %
>
40 <input type=
"reset" value=
"
41 <%- if not self.reset then -%><%-:reset-%><%-else-%><%=self.reset%><%end%>
44 <script type=
"text/javascript">cbi_d_init();
</script>