% var e, error, n, notice; %>
<% if (!_.isEmpty(m.errors)) { %>
<% foreach (m.errors as e => error) { %>
{{zenario.htmlspecialchars(error.message, true)}}
<% } %>
<% } %>
<% foreach (m.notices as n => notice) { %>
<% if (notice.html) { %>
{{notice.message}}
<% } else { %>
{{zenario.htmlspecialchars(notice.message, true)}}
<% } %>
<% } %>
<% if (m.fields) { %>
<%
var f,
field,
ff = m.fields[0],
fl = m.fields.length,
lf = m.fields[fl-1],
pgf = ff._lastVisibleGroupingField,
lgf = lf._lastVisibleGroupingField,
rowHasError = false;
%>
<% foreach (m.fields as f => field) { %>
<% if (field.error) { %>
<% rowHasError = true; %>
<% break; %>
<% } %>
<% } %>
<% if (ff._lastVisibleGrouping !== ff.grouping) { %>
<% if (pgf) { %>
<% if (pgf.post_grouping_html) { %>
{{pgf.post_grouping_html}}
<% } %>
<% if (!ff.grouping || m.grouping.start_new_grouping_wrapper) { %>
<% } %>
<% } %>
<% if (ff.grouping) { %>
<% if (!pgf || m.grouping.start_new_grouping_wrapper) { %>
<% if (m.grouping.grouping_wrapper_icon_class) { %>
<% if (zenario.defined(m.grouping.grouping_wrapper_record_count)) { %>
{{m.grouping.grouping_wrapper_record_count|escape}}
<% } %>
<% } %>
<% } %>
<% if (m.grouping.pre_grouping_html) { %>
{{m.grouping.pre_grouping_html}}
<% } %>
<% if (lgf && lgf.post_grouping_html) { %>
{{lgf.post_grouping_html}}
<% } %>
<% } %>
<% } %>
<% } %>