2008-07-07 22:00:56 +00:00
|
|
|
<%#
|
2015-01-16 22:38:38 +00:00
|
|
|
Copyright 2008 Steven Barth <steven@midlink.org>
|
2015-10-06 20:29:07 +00:00
|
|
|
Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
|
2015-01-16 22:38:38 +00:00
|
|
|
Licensed to the public under the Apache License 2.0.
|
2008-07-07 22:00:56 +00:00
|
|
|
-%>
|
2008-12-07 21:27:11 +00:00
|
|
|
|
2008-04-11 18:24:25 +00:00
|
|
|
<%+header%>
|
2008-12-07 21:27:11 +00:00
|
|
|
|
2015-10-06 11:29:43 +00:00
|
|
|
<h2 name="content"><%:Configuration%> / <%:Changes%></h2>
|
2008-12-07 21:27:11 +00:00
|
|
|
|
2010-10-15 21:53:28 +00:00
|
|
|
<% if changes then %>
|
|
|
|
<%+admin_uci/changelog%>
|
|
|
|
<%- uci_changelog(changes) -%>
|
|
|
|
<% else %>
|
|
|
|
<p><strong><%:There are no pending changes!%></strong></p>
|
|
|
|
<% end %>
|
2008-12-07 21:27:11 +00:00
|
|
|
|
|
|
|
<div class="cbi-page-actions">
|
2018-04-05 20:37:37 +00:00
|
|
|
<% local node, url = luci.dispatcher.lookup(luci.http.formvalue("redir")); if url then %>
|
2008-12-07 21:27:11 +00:00
|
|
|
<div style="float:left">
|
2018-04-05 20:37:37 +00:00
|
|
|
<form class="inline" method="get" action="<%=luci.util.pcdata(url)%>">
|
2010-11-25 08:06:22 +00:00
|
|
|
<input class="cbi-button cbi-button-link" style="float:left; margin:0" type="submit" value="<%:Back%>" />
|
2008-12-07 21:27:11 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2011-06-25 20:47:00 +00:00
|
|
|
<% end %>
|
2008-12-07 21:27:11 +00:00
|
|
|
|
|
|
|
<div style="text-align:right">
|
2015-10-06 20:29:07 +00:00
|
|
|
<form class="inline" method="post" action="<%=controller%>/admin/uci/apply">
|
|
|
|
<input type="hidden" name="token" value="<%=token%>" />
|
2010-11-25 08:06:22 +00:00
|
|
|
<input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
|
2009-10-31 15:54:11 +00:00
|
|
|
<input class="cbi-button cbi-button-apply" type="submit" value="<%:Apply%>" />
|
2008-12-07 21:27:11 +00:00
|
|
|
</form>
|
2015-10-06 20:29:07 +00:00
|
|
|
<form class="inline" method="post" action="<%=controller%>/admin/uci/saveapply">
|
|
|
|
<input type="hidden" name="token" value="<%=token%>" />
|
2010-11-25 08:06:22 +00:00
|
|
|
<input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
|
2009-10-31 15:54:11 +00:00
|
|
|
<input class="cbi-button cbi-button-save" type="submit" value="<%:Save & Apply%>" />
|
2008-12-07 21:27:11 +00:00
|
|
|
</form>
|
2015-10-06 20:29:07 +00:00
|
|
|
<form class="inline" method="post" action="<%=controller%>/admin/uci/revert">
|
|
|
|
<input type="hidden" name="token" value="<%=token%>" />
|
2010-11-25 08:06:22 +00:00
|
|
|
<input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
|
2009-10-31 15:54:11 +00:00
|
|
|
<input class="cbi-button cbi-button-reset" type="submit" value="<%:Revert%>" />
|
2008-12-07 21:27:11 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2008-07-15 22:37:53 +00:00
|
|
|
<%+footer%>
|