<% for _, x in ipairs(self.chain) do %>
<% end %>
<% if not self.disallow_pageactions then %>
<% if self.allow_finish and not self:get_next(self.current) then %>
<% elseif self:get_next(self.current) then %>
<% end %>
<% if self.allow_cancel then %>
<% end %>
<% if self.allow_reset then %>
<% end %>
<% if self.allow_back and self:get_prev(self.current) then %>
<% end %>
<% end %>