<% if self.title and #self.title > 0 then -%> <%=self.title%> <%- end %> <% if self.description and #self.description > 0 then -%>
<%=self.description%>
<%- end %>
<% self:render_children(1, scope or {}) %>
<% if self.error and self.error[1] then -%>
    <% for _, e in ipairs(self.error[1]) do -%>
  • <%- if e == "invalid" then -%> <%:One or more fields contain invalid values!%> <%- elseif e == "missing" then -%> <%:One or more required fields have no value!%> <%- else -%> <%=pcdata(e)%> <%- end -%>
  • <%- end %>
<%- end %>
<%- if type(self.hidden) == "table" then for k, v in pairs(self.hidden) do -%> <%- end end %>