Revert "luci-base: support hiding the "Back to Overview" button in cbi maps"
[project/luci.git] / modules / luci-base / luasrc / view / cbi / footer.htm
1         <%- if pageaction then -%>
2         <div class="cbi-page-actions">
3                 <% if redirect then %>
4                 <div style="float:left">
5                         <input class="cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" />
6                 </div>
7                 <% end %>
8
9                 <% if flow.skip then %>
10                         <input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" />
11                 <% end %>
12                 <% if not autoapply and not flow.hideapplybtn then %>
13                         <input class="cbi-button cbi-button-apply" type="submit" name="cbi.apply" value="<%:Save & Apply%>" />
14                 <% end %>
15                 <% if not flow.hidesavebtn then %>
16                         <input class="cbi-button cbi-button-save" type="submit" value="<%:Save%>" />
17                 <% end %>
18                 <% if not flow.hideresetbtn then %>
19                         <input class="cbi-button cbi-button-reset" type="button" value="<%:Reset%>" onclick="location.href='<%=REQUEST_URI%>'" />
20                 <% end %>
21         </div>
22         <%- end -%>
23 </form>
24
25 <script type="text/javascript">cbi_init();</script>
26
27 <%+footer%>