Rework LuCI build system
[project/luci.git] / modules / luci-mod-admin-full / luasrc / view / admin_uci / changes.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
16 <%+header%>
17
18 <h2><a id="content" name="content"><%:Configuration%> / <%:Changes%></a></h2>
19
20 <% if changes then %>
21         <%+admin_uci/changelog%>
22         <%- uci_changelog(changes) -%>
23 <% else %>
24         <p><strong><%:There are no pending changes!%></strong></p>
25 <% end %>
26
27 <div class="cbi-page-actions">
28         <% local r = luci.http.formvalue("redir"); if r and #r > 0 then %>
29         <div style="float:left">
30                 <form class="inline" method="get" action="<%=luci.util.pcdata(r)%>">
31                         <input class="cbi-button cbi-button-link" style="float:left; margin:0" type="submit" value="<%:Back%>" />
32                 </form>
33         </div>
34         <% end %>
35
36         <div style="text-align:right">
37                 <form class="inline" method="get" action="<%=controller%>/admin/uci/apply">
38                         <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
39                         <input class="cbi-button cbi-button-apply" type="submit" value="<%:Apply%>" />
40                 </form>
41                 <form class="inline" method="get" action="<%=controller%>/admin/uci/saveapply">
42                         <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
43                         <input class="cbi-button cbi-button-save" type="submit" value="<%:Save & Apply%>" />
44                 </form>
45                 <form class="inline" method="get" action="<%=controller%>/admin/uci/revert">
46                         <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
47                         <input class="cbi-button cbi-button-reset" type="submit" value="<%:Revert%>" />
48                 </form>
49         </div>
50 </div>
51
52 <%+footer%>