<% 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 (ff.legend) { %> {{ff.legend}} <% } %> <% if (ff.error_on_form_message && m.thus.errorOnForm) { %>
{{zenario.htmlspecialchars(ff.error_on_form_message, true)}}
<% } %>
<% if (ff.label !== undefined && !(ff.type == 'checkbox' || ff.type == 'radio')) { %>
<% if (ff.pre_field_post_label_html) { %> {{ff.pre_field_post_label_html}} <% } %>
<% } %>
{{m.lib.microTemplate(m.lib.mtPrefix + '_field', m.fields)}}
<% foreach (m.fields as f => field) { %> <% if (field.error && field.error != true) { %>
{{zenario.htmlspecialchars(field.error, true)}}
<% } %> <% } %>
<% if (ff._isLastRow) { %> <% if (ff.grouping) { %>
<% if (lgf && lgf.post_grouping_html) { %> {{lgf.post_grouping_html}} <% } %>
<% } %> <% } %> <% } %>