libs/web: handle .redirect property for SimpleForm widgets
This commit is contained in:
parent
e134834014
commit
cd46e1611e
1 changed files with 6 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
<%- end %>
|
||||
<%- if self.errmessage then %>
|
||||
<div class="error"><%=self.errmessage%></div>
|
||||
<%- end %>
|
||||
<%- end %>
|
||||
<% if not self.embedded then %>
|
||||
<div>
|
||||
<%-
|
||||
|
@ -28,6 +28,11 @@
|
|||
end
|
||||
end
|
||||
%>
|
||||
<% 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 self.flow and self.flow.skip then %>
|
||||
<input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" />
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue