changes.htm 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <%#
  2. Copyright 2008 Steven Barth <steven@midlink.org>
  3. Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
  4. Licensed to the public under the Apache License 2.0.
  5. -%>
  6. <%+header%>
  7. <h2><a id="content" name="content"><%:Configuration%> / <%:Changes%></a></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="get" action="<%=controller%>/admin/uci/apply">
  24. <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
  25. <input class="cbi-button cbi-button-apply" type="submit" value="<%:Apply%>" />
  26. </form>
  27. <form class="inline" method="get" action="<%=controller%>/admin/uci/saveapply">
  28. <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
  29. <input class="cbi-button cbi-button-save" type="submit" value="<%:Save & Apply%>" />
  30. </form>
  31. <form class="inline" method="get" action="<%=controller%>/admin/uci/revert">
  32. <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
  33. <input class="cbi-button cbi-button-reset" type="submit" value="<%:Revert%>" />
  34. </form>
  35. </div>
  36. </div>
  37. <%+footer%>