modules/admin-full: pass along backlink in uci pages
[project/luci.git] / modules / 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         <div style="float:left">
29                 <form class="inline" method="get" action="<%=luci.util.pcdata(luci.http.formvalue("redir"))%>">
30                         <input class="cbi-button cbi-button-link" style="float:left; margin:0" type="submit" value="<%:Back%>" />
31                 </form>
32         </div>
33
34         <div style="text-align:right">
35                 <form class="inline" method="get" action="<%=controller%>/admin/uci/apply">
36                         <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
37                         <input class="cbi-button cbi-button-apply" type="submit" value="<%:Apply%>" />
38                 </form>
39                 <form class="inline" method="get" action="<%=controller%>/admin/uci/saveapply">
40                         <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
41                         <input class="cbi-button cbi-button-save" type="submit" value="<%:Save & Apply%>" />
42                 </form>
43                 <form class="inline" method="get" action="<%=controller%>/admin/uci/revert">
44                         <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
45                         <input class="cbi-button cbi-button-reset" type="submit" value="<%:Revert%>" />
46                 </form>
47         </div>
48 </div>
49
50 <%+footer%>