<% var e, error, n, notice; %> <% if (zenario.engToBoolean(m.errors)) { %> <% foreach (m.errors as e => error) { %>
{{zenario.htmlspecialchars(error.message, true)}}
<% } %> <% } %> <% foreach (m.notices as n => notice) { %>
{{zenario.htmlspecialchars(notice.message, true)}}
<% } %> <% if (m.fields) { %> <% var f, field, ff = m.fields[0], rowHasError = false; %> <% foreach (m.fields as f => field) { %> <% if (field.error) { %> <% rowHasError = true; %> <% break; %> <% } %> <% } %> <% if (ff._lastVisibleGrouping !== ff.grouping) { %> <% if (ff._lastVisibleGrouping) { %> <% } %> <% if (ff.grouping) { %> <% var grouping = m.grouping || {}; %>
<% } %> <% } %> <% if (ff.legend) { %> {{ff.legend}} <% } %> <% if (ff.error_on_form_message && m.lib.errorOnForm) { %>
{{zenario.htmlspecialchars(ff.error_on_form_message, true)}}
<% } %>
<% if (ff.label !== undefined && !(ff.type == 'checkbox' || ff.type == 'radio')) { %>
<% } %>
{{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) { %>
<% } %> <% } %> <% } %>