libs/web: add "back to overview" button to page actions if .redirect is set on the...
[project/luci.git] / libs / web / luasrc / view / cbi / footer.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 -%>
15         <%- if pageaction then -%>
16         <div class="cbi-page-actions">
17                 <% if redirect then %>
18                 <div style="float:left">
19                         <input class="cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" />
20                 </div>
21                 <% end %>
22
23                 <% if flow.skip then %>
24                         <input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" />
25                 <% end %>
26                 <% if not autoapply then %>
27                         <input class="cbi-button cbi-button-apply" type="submit" name="cbi.apply" value="<%:Save & Apply%>" />
28                 <% end %>
29                 <input class="cbi-button cbi-button-save" type="submit" value="<%:Save%>" />
30                 <input class="cbi-button cbi-button-reset" type="reset" value="<%:Reset%>" />
31
32                 <script type="text/javascript">cbi_d_update();</script>
33         </div>
34         <%- end -%>
35 </form>
36 <%+footer%>