{% import 'ef_macros.html' as ef_macros %} {% macro render_input(field, css_classes=None) %} {% endmacro %}
{% if field.style == styles.BOOTSTRAP_4 %}
{{ render_input(field, field.input_classes.replace('form-control', 'form-check-input')) }} {{ ef_macros.bs4_error(field) }} {{ ef_macros.bs4_help_text(field) }}
{% else %}
{{ ef_macros.bs3_error(field) }} {{ ef_macros.bs3_help_text(field) }} {% endif %}