modules/admin-full: new interface overview page, other template changes
[project/luci.git] / modules / admin-full / luasrc / view / admin_uci / changes.htm
index 09d8d3e..34968c0 100644 (file)
@@ -12,15 +12,36 @@ You may obtain a copy of the License at
 $Id$
 
 -%>
+
 <%+header%>
-<h1><%:config%></h1>
-<h2><%:changes%></h2>
-<code><%=changes%></code>
-<br /><br />
-<form class="inline" method="get" action="<%=controller%>/admin/uci/apply">
-       <input type="submit" value="<%:apply%>" />
-</form>
-<form class="inline" method="get" action="<%=controller%>/admin/uci/revert">
-       <input type="submit" value="<%:revert%>" />
-</form>
+
+<h2><a id="content" name="content"><%:Configuration / Changes%></a></h2>
+
+<% if changes then %>
+       <%+admin_uci/changelog%>
+       <%- uci_changelog(changes) -%>
+<% else %>
+       <p><strong><%:There are no pending changes!%></strong></p>
+<% end %>
+
+<div class="cbi-page-actions">
+       <div style="float:left">
+               <form class="inline" method="get" action="<%=luci.util.pcdata(luci.http.formvalue("redir"))%>">
+                       <input class="cbi-button" style="float:left; margin:0" type="submit" value="<%:« Back%>" />
+               </form>
+       </div>
+
+       <div style="text-align:right">
+               <form class="inline" method="get" action="<%=controller%>/admin/uci/apply">
+                       <input class="cbi-button cbi-button-apply" type="submit" value="<%:Apply%>" />
+               </form>
+               <form class="inline" method="get" action="<%=controller%>/admin/uci/saveapply">
+                       <input class="cbi-button cbi-button-save" type="submit" value="<%:Save & Apply%>" />
+               </form>
+               <form class="inline" method="get" action="<%=controller%>/admin/uci/revert">
+                       <input class="cbi-button cbi-button-reset" type="submit" value="<%:Revert%>" />
+               </form>
+       </div>
+</div>
+
 <%+footer%>