e9de29a91ae08ac1a0adc0880308e0e50e51939d
[project/luci.git] / modules / admin-full / luasrc / view / admin_uci / apply.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 <%+header%>
16
17 <h2><a id="content" name="content"><%:Configuration%></a></h2>
18 <p><strong><%:The following changes have been applied%>:</strong></p>
19
20 <div class="cbi-section">
21         <code><%=(changes or "-")%></code>
22 </div>
23
24 <fieldset class="cbi-section">
25         <ul class="cbi-apply"><%-
26                 local fp = reload()
27                 local line = fp:read()
28                 while line do
29                         write("<li>" .. luci.util.pcdata(line) .. "</li>\n")
30                         line = fp:read()
31                 end
32                 fp:close()
33         -%></ul>
34 </fieldset>
35
36 <div class="cbi-page-actions">
37         <form class="inline" method="get" action="<%=luci.util.pcdata(luci.http.formvalue("redir"))%>">
38                 <input class="cbi-button" style="margin:0" type="submit" value="« <%:back%>" />
39         </form>
40 </div>
41
42 <%+footer%>