{% with field|widget_type as type %}
{% if type == 'radio' or type == 'checkboxinput' or type == 'checkboxselectmultiple' %}
{{ field.label }}
{% else %}
{% endif %}
{% if field.help_text %}
{{ field.help_text }}
{% endif %}
{% if type == 'radioselect' %}
{% for choice in field %}
{% endfor %}
{% elif type == 'yesno' %}
{% for choice in field %}
{% endfor %}
{% elif type == 'checkboxinput' %}
{% elif type == 'checkboxselectmultiple' %}
{% for choice in field %}
{% endfor %}
{% else %}
{% render_field field class="form-control" %}
{% if type == 'selectmultiple' %}
{% trans 'Hold down "Control", or "Command" on a Mac, to select more than one.' %}