{% load bootstrap_toolkit %}
{% with field|bootstrap_input_type as input_type %} {% if input_type == "checkbox" %} {% include "bootstrap_toolkit/field_checkbox.html" %} {% else %} {% if input_type == "multicheckbox" %} {% include "bootstrap_toolkit/field_choices.html" with type="checkbox" %} {% else %} {% if input_type == "radioset" %} {% include "bootstrap_toolkit/field_choices.html" with type="radio" %} {% else %} {% include "bootstrap_toolkit/field_default.html" %} {% endif %} {% endif %} {% include "bootstrap_toolkit/field_help.html" %} {% endif %} {% endwith %} {% include "bootstrap_toolkit/field_errors.html" %}