libs/web: add "back to overview" button to page actions if .redirect is set on the corresponding map

This commit is contained in:
Jo-Philipp Wich 2010-11-21 00:21:49 +00:00
parent cd4c263de0
commit 6b3e6fb854

View file

@ -14,14 +14,21 @@ $Id$
-%> -%>
<%- if pageaction then -%> <%- if pageaction then -%>
<div class="cbi-page-actions"> <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 %> <% if flow.skip then %>
<input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" /> <input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" />
<% end %> <% end %>
<% if not autoapply then%> <% if not autoapply then %>
<input class="cbi-button cbi-button-apply" type="submit" name="cbi.apply" value="<%:Save & Apply%>" /> <input class="cbi-button cbi-button-apply" type="submit" name="cbi.apply" value="<%:Save & Apply%>" />
<% end %> <% end %>
<input class="cbi-button cbi-button-save" type="submit" value="<%:Save%>" /> <input class="cbi-button cbi-button-save" type="submit" value="<%:Save%>" />
<input class="cbi-button cbi-button-reset" type="reset" value="<%:Reset%>" /> <input class="cbi-button cbi-button-reset" type="reset" value="<%:Reset%>" />
<script type="text/javascript">cbi_d_update();</script> <script type="text/javascript">cbi_d_update();</script>
</div> </div>
<%- end -%> <%- end -%>