summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-11 01:20:36 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-11 01:20:36 +0000
commitcd46e1611ea331fcb295cb61c43ff64b0ba8772f (patch)
tree26a55fe8ff76e3801cd1e121f4818f013601fbbd /libs
parente134834014013571ddd409b80cabfce69e0c429f (diff)
libs/web: handle .redirect property for SimpleForm widgets
Diffstat (limited to 'libs')
-rw-r--r--libs/web/luasrc/view/cbi/simpleform.htm7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/web/luasrc/view/cbi/simpleform.htm b/libs/web/luasrc/view/cbi/simpleform.htm
index 36537ec08..1a4726a02 100644
--- a/libs/web/luasrc/view/cbi/simpleform.htm
+++ b/libs/web/luasrc/view/cbi/simpleform.htm
@@ -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 %>