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

@ -28,6 +28,11 @@
end end
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 %> <%- if self.flow and self.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 %>