2
0

delegator.htm 1.1 KB

123456789101112131415161718192021222324
  1. <%- self.active:render() %>
  2. <div class="cbi-page-actions">
  3. <input type="hidden" name="cbi.delg.current" value="<%=self.current%>" />
  4. <% for _, x in ipairs(self.chain) do %>
  5. <input type="hidden" name="cbi.delg.path" value="<%=x%>" />
  6. <% end %>
  7. <% if not self.disallow_pageactions then %>
  8. <% if self.allow_finish and not self:get_next(self.current) then %>
  9. <input class="btn cbi-button cbi-button-finish" type="submit" value="<%:Finish%>" />
  10. <% elseif self:get_next(self.current) then %>
  11. <input class="btn cbi-button cbi-button-next" type="submit" value="<%:Next »%>" />
  12. <% end %>
  13. <% if self.allow_cancel then %>
  14. <input class="btn cbi-button cbi-button-cancel" type="submit" name="cbi.cancel" value="<%:Cancel%>" />
  15. <% end %>
  16. <% if self.allow_reset then %>
  17. <input class="btn cbi-button cbi-button-reset" type="reset" value="<%:Reset%>" />
  18. <% end %>
  19. <% if self.allow_back and self:get_prev(self.current) then %>
  20. <input class="btn cbi-button cbi-button-back" type="submit" name="cbi.delg.back" value="<%:« Back%>" />
  21. <% end %>
  22. <% end %>
  23. <script>cbi_d_update();</script>
  24. </div>