changes.htm 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <%#
  2. Copyright 2008 Steven Barth <steven@midlink.org>
  3. Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
  4. Licensed to the public under the Apache License 2.0.
  5. -%>
  6. <%+header%>
  7. <h2 name="content"><%:Configuration%> / <%:Changes%></h2>
  8. <% if changes then %>
  9. <%+admin_uci/changelog%>
  10. <%- uci_changelog(changes) -%>
  11. <% else %>
  12. <p><strong><%:There are no pending changes!%></strong></p>
  13. <% end %>
  14. <div class="cbi-page-actions">
  15. <% local r = luci.http.formvalue("redir"); if r and #r > 0 then %>
  16. <div style="float:left">
  17. <form class="inline" method="get" action="<%=luci.util.pcdata(r)%>">
  18. <input class="cbi-button cbi-button-link" style="float:left; margin:0" type="submit" value="<%:Back%>" />
  19. </form>
  20. </div>
  21. <% end %>
  22. <div style="text-align:right">
  23. <form class="inline" method="post" action="<%=controller%>/admin/uci/apply">
  24. <input type="hidden" name="token" value="<%=token%>" />
  25. <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
  26. <input class="cbi-button cbi-button-apply" type="submit" value="<%:Apply%>" />
  27. </form>
  28. <form class="inline" method="post" action="<%=controller%>/admin/uci/saveapply">
  29. <input type="hidden" name="token" value="<%=token%>" />
  30. <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
  31. <input class="cbi-button cbi-button-save" type="submit" value="<%:Save & Apply%>" />
  32. </form>
  33. <form class="inline" method="post" action="<%=controller%>/admin/uci/revert">
  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-reset" type="submit" value="<%:Revert%>" />
  37. </form>
  38. </div>
  39. </div>
  40. <%+footer%>