<% 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 firstField = m.fields[0]; %> <% if (firstField._lastGrouping !== firstField.grouping) { %> <% if (firstField._lastGrouping) { %> <% } %> <% 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) { %>
{{m.fields[f].side_note}}
<% } %> <% } %> <% if (firstField.label && !(firstField.type == 'checkbox' || firstField.type == 'radio' || firstField.type == 'toggle')) { %>
<% } %> <% } %>
<% for (f in m.fields) { %> {{m.fields[f]._html}} <% if (m.fields[f].label && (m.fields[f].type == 'checkbox' || m.fields[f].type == 'radio' || m.fields[f].type == 'toggle')) { %> <% } %> <% if (m.fields[f].show_phrase_icon) { %> <% } %> <% } %>
<% for (f in m.fields) { %> <% if (m.fields[f].note_below) { %>
{{m.fields[f].note_below}}
<% } %> <% } %>
<% if (firstField._isLastRow) { %> <% if (firstField.grouping) { %>
<% } %> <% } %> <% } %>