all: change most translate statements to new format, some need manual cleanup
[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 self.allow_back and self:get_prev(self.current) then %>
21                 <input class="cbi-button cbi-button-back" type="submit" name="cbi.delg.back" value="<%:cbi_back &lt; Back%>" />
22 <% end %>
23 <% if self.allow_reset then %>
24                 <input class="cbi-button cbi-button-reset" type="reset" value="<%:Reset%>" />
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_finish and not self:get_next(self.current) then %>
30         <input class="cbi-button cbi-button-finish" type="submit" value="<%:cbi_finish Finish%>" />
31 <% elseif self:get_next(self.current) then %>
32                 <input class="cbi-button cbi-button-next" type="submit" value="<%:cbi_next Next &gt;%>" />
33 <% end %>
34                 <script type="text/javascript">cbi_d_update();</script>
35         </div>