libs/web: handle .redirect property for SimpleForm widgets

This commit is contained in:
Jo-Philipp Wich 2011-10-11 01:20:36 +00:00
parent e134834014
commit cd46e1611e

View file

@ -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 %>