<% if (zenario.engToBoolean(m.errors)) { %>
<% for (var e in m.errors) { %>
{{zenario.htmlspecialchars(m.errors[e].message, true)}}
<% } %>
<% } %> <% for (var n in m.notices) { %>
{{zenario.htmlspecialchars(m.notices[n].message, true)}}
<% } %> <% if (m.fields) { %> <% var f; %> <% var hadKeySymbol = false; %> <% var firstField = m.fields[0]; %> <% if (firstField._lastVisibleGrouping !== firstField.grouping) { %> <% if (firstField._lastVisibleGrouping) { %> <% } %> <% if (firstField.grouping) { %>
<% } %> <% } %> <% if (firstField.legend) { %> {{firstField.legend}} <% } %>
<% if (!zenario.engToBoolean(firstField.full_width)) { %> <% for (f in m.fields) { %> <% if (m.fields[f].side_note) { %>
{{zenario.unfun(m.fields[f].side_note)}}
<% } %> <% } %> <% if (firstField.label && !zenario.IN(firstField.type, 'checkbox', 'radio', 'toggle')) { %>
<% if (firstField.encrypted && zenario.IN(firstField.type, 'checkboxes', 'radios')) { %> 🔑 <% hadKeySymbol = true; %> <% } %>
<% } %> <% } %>
<% for (f in m.fields) { %> {{m.fields[f]._html}} <% if (!hadKeySymbol && m.fields[f].encrypted) { %> 🔑 <% } %> <% if (m.fields[f].show_phrase_icon) { %> <% } %> <% } %>
<% for (f in m.fields) { %> <% if (m.fields[f].note_below) { %>
{{zenario.unfun(m.fields[f].note_below)}}
<% } %> <% } %>
<% if (firstField._isLastRow) { %> <% if (firstField.grouping) { %>
<% } %> <% } %> <% } %>