a4a62af6405419ec4add7f530f6d35445aa05eef
[project/luci.git] / libs / cbi / luasrc / view / cbi / delegator.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2009 Steven Barth <steven@midlink.org>
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 $Id$
12
13 -%>
14 <%- self.active:render() %>
15 <div class="cbi-page-actions">
16 <input type="hidden" name="cbi.delg.current" value="<%=self.current%>" />
17 <% for _, x in ipairs(self.chain) do %>
18 <input type="hidden" name="cbi.delg.path" value="<%=x%>" />
19 <% end %>
20 <% if not self.disallow_pageactions then %>
21 <% if self.allow_back and self:get_prev(self.current) then %>
22 <input class="cbi-button cbi-button-back" type="submit" name="cbi.delg.back" value="<%:« Back%>" />
23 <% end %>
24 <% if self.allow_reset then %>
25 <input class="cbi-button cbi-button-reset" type="reset" value="<%:Reset%>" />
26 <% end %>
27 <% if self.allow_cancel then %>
28 <input class="cbi-button cbi-button-cancel" type="submit" name="cbi.cancel" value="<%:Cancel%>" />
29 <% end %>
30 <% if self.allow_finish and not self:get_next(self.current) then %>
31 <input class="cbi-button cbi-button-finish" type="submit" value="<%:Finish%>" />
32 <% elseif self:get_next(self.current) then %>
33 <input class="cbi-button cbi-button-next" type="submit" value="<%:Next »%>" />
34 <% end %>
35 <% end %>
36 <script type="text/javascript">cbi_d_update();</script>
37 </div>