Merge pull request #2140 from kristrev/multiple-upstream-interfaces-status
[project/luci.git] / modules / luci-mod-admin-full / luasrc / view / admin_uci / changes.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%> / <%:Changes%></h2>
17
18 <% if changes then %>
19 <%- uci_changelog(changes) -%>
20 <% else %>
21 <p><strong><%:There are no pending changes!%></strong></p>
22 <% end %>
23
24 <div class="alert-message" id="cbi_apply_status" style="display:none"></div>
25
26 <div class="cbi-page-actions">
27 <% if redir_url then %>
28 <form method="get" action="<%=luci.util.pcdata(redir_url)%>">
29 <input class="cbi-button cbi-button-link" type="submit" value="<%:Back%>" />
30 </form>
31 <% end %>
32
33 <form method="post" action="<%=url("admin/uci/changes")%>">
34 <input type="hidden" name="token" value="<%=token%>" />
35 <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
36 <input class="cbi-button cbi-button-save" type="submit" name="trigger_apply" value="<%:Save & Apply%>" />
37 </form>
38 <form method="post" action="<%=url("admin/uci/revert")%>">
39 <input type="hidden" name="token" value="<%=token%>" />
40 <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
41 <input class="cbi-button cbi-button-reset" type="submit" value="<%:Revert%>" />
42 </form>
43 </div>
44
45 <%+footer%>