<% _.each(fields, function (props, index) { %> <% if(props.type === 'select') { %>
<% } else if(props.type === 'input') { %>
Help text
<% } else if(props.type === 'checkbox') { %>
<% } %> <% }) %>
<% if(view !== 'form') { %> <% } %>