luci-base: add uci.js and rpc.js classes
[oweals/luci.git] / modules / luci-base / luasrc / view / admin_uci / revert.htm
1 <%#
2  Copyright 2008 Steven Barth <steven@midlink.org>
3  Copyright 2008-2018 Jo-Philipp Wich <jo@mein.io>
4  Licensed to the public under the Apache License 2.0.
5 -%>
6
7 <%+header%>
8
9 <%-
10         local node, redir_url = luci.dispatcher.lookup(luci.http.formvalue("redir"))
11         export("redirect", redir_url or url("admin/uci/changes"))
12
13         include("admin_uci/changelog")
14 -%>
15
16 <h2 name="content"><%:Configuration%> / <%:Revert%></h2>
17
18 <% if changes then %>
19         <p><strong><%:The following changes have been reverted%>:</strong></p>
20         <%- uci_changelog(changes) -%>
21 <% else %>
22         <p><strong><%:There are no pending changes to revert!%></strong></p>
23 <% end %>
24
25 <% if redir_url then %>
26         <div class="cbi-page-actions">
27                 <form class="inline" method="get" action="<%=luci.util.pcdata(redir_url)%>">
28                         <input class="cbi-button cbi-button-link" style="margin:0" type="submit" value="<%:Back%>" />
29                 </form>
30         </div>
31 <% end %>
32
33 <%+footer%>