libs/web: add "back to overview" button to page actions if .redirect is set on the corresponding map
This commit is contained in:
parent
cd4c263de0
commit
6b3e6fb854
1 changed files with 8 additions and 1 deletions
|
@ -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 -%>
|
||||
|
|
Loading…
Reference in a new issue