summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/view/cbi/footer.htm
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-21 00:21:49 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-21 00:21:49 +0000
commit6b3e6fb854594d9b709945e8f0c88ebb7798be8c (patch)
tree1c15179de8dc71ca416f4787018854a23c0c2172 /libs/web/luasrc/view/cbi/footer.htm
parentcd4c263de080990664fe458e224d2a56423ad695 (diff)
libs/web: add "back to overview" button to page actions if .redirect is set on the corresponding map
Diffstat (limited to 'libs/web/luasrc/view/cbi/footer.htm')
-rw-r--r--libs/web/luasrc/view/cbi/footer.htm9
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/web/luasrc/view/cbi/footer.htm b/libs/web/luasrc/view/cbi/footer.htm
index fe5b6881c2..eb79f2419b 100644
--- a/libs/web/luasrc/view/cbi/footer.htm
+++ b/libs/web/luasrc/view/cbi/footer.htm
@@ -14,14 +14,21 @@ $Id$
-%>
<%- if pageaction then -%>
<div class="cbi-page-actions">
+ <% if redirect then %>
+ <div style="float:left">
+ <input class="cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" />
+ </div>
+ <% end %>
+
<% if flow.skip then %>
<input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" />
<% end %>
- <% if not autoapply then%>
+ <% if not autoapply then %>
<input class="cbi-button cbi-button-apply" type="submit" name="cbi.apply" value="<%:Save & Apply%>" />
<% end %>
<input class="cbi-button cbi-button-save" type="submit" value="<%:Save%>" />
<input class="cbi-button cbi-button-reset" type="reset" value="<%:Reset%>" />
+
<script type="text/javascript">cbi_d_update();</script>
</div>
<%- end -%>