ed7c6b4ea23eef4b4c4a637783483d0eadde5f89
[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_finish and not self:get_next(self.current) then %>
22 <input class="cbi-button cbi-button-finish" type="submit" value="<%:Finish%>" />
23 <% elseif self:get_next(self.current) then %>
24 <input class="cbi-button cbi-button-next" type="submit" value="<%:Next »%>" />
25 <% end %>
26 <% if self.allow_cancel then %>
27 <input class="cbi-button cbi-button-cancel" type="submit" name="cbi.cancel" value="<%:Cancel%>" />
28 <% end %>
29 <% if self.allow_reset then %>
30 <input class="cbi-button cbi-button-reset" type="reset" value="<%:Reset%>" />
31 <% end %>
32 <% if self.allow_back and self:get_prev(self.current) then %>
33 <input class="cbi-button cbi-button-back" type="submit" name="cbi.delg.back" value="<%:« Back%>" />
34 <% end %>
35 <% end %>
36 <script type="text/javascript">cbi_d_update();</script>
37 </div>