<% 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, hadKeySymbol = 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 (!zenario.engToBoolean(ff.full_width)) { %> <% foreach (m.fields as f => field) { %> <% if (field.side_note) { %>
{{zenario.unfun(field.side_note)}}
<% } %> <% } %> <% if (ff.label && !zenario.IN(ff.type, 'checkbox', 'radio')) { %>
<% if (ff.encrypted && zenario.IN(ff.type, 'checkboxes', 'radios')) { %> 🔑 <% hadKeySymbol = true; %> <% } %>
<% } %> <% } %>
<% foreach (m.fields as f => field) { %> {{field._html}} <% if (!hadKeySymbol && field.encrypted) { %> 🔑 <% } %> <% if (field.show_phrase_icon) { %> <% } %> <% } %>
<% foreach (m.fields as f => field) { %> <% if (field.note_below) { %>
{{zenario.unfun(field.note_below)}}
<% } %> <% } %> <% foreach (m.fields as f => field) { %> <% if (field.error && field.error != true) { %>
{{zenario.htmlspecialchars(field.error, true)}}
<% } %> <% } %>
<% if (ff._isLastRow) { %> <% if (ff.grouping) { %>
<% } %> <% } %> <% } %>