modules/admin-full: pass along backlink in uci pages
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 25 Nov 2010 08:06:22 +0000 (08:06 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 25 Nov 2010 08:06:22 +0000 (08:06 +0000)
modules/admin-full/luasrc/view/admin_uci/changes.htm

index 34968c05ac7ec720cd736064e619a699899af371..c26d8cc5b84bc4db77a09ae285024368b8bd32a5 100644 (file)
@@ -27,18 +27,21 @@ $Id$
 <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%>" />
+                       <input class="cbi-button cbi-button-link" 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 type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
                        <input class="cbi-button cbi-button-apply" type="submit" value="<%:Apply%>" />
                </form>
                <form class="inline" method="get" action="<%=controller%>/admin/uci/saveapply">
+                       <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
                        <input class="cbi-button cbi-button-save" type="submit" value="<%:Save & Apply%>" />
                </form>
                <form class="inline" method="get" action="<%=controller%>/admin/uci/revert">
+                       <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
                        <input class="cbi-button cbi-button-reset" type="submit" value="<%:Revert%>" />
                </form>
        </div>