{% macro form_field(field, placeholder=False, class="") %} {% with css_class = "error" if field.errors else "", errors = field.errors | join(", ") %} {% if field.type == "BooleanField" %}