{% load pbp_core_tags %}
{% load thumbnail %}

    {% for field in form %}
    <div>
        {{ field.errors }}
        <label for="{{ field.auto_id }}" {% if field.field.widget|field_type == 'CheckboxInput' %}class='checkbox'{% endif %} >
            {% if field.field.required %}{{ field.label }}<span class="required">*</span>
            {% else %}{{ field.label }}{% endif %}
        {% if not field.field.widget|field_type == 'CheckboxInput' %} 
            </label> {{ field }}
        {% else %}
            {{ field }}
            </label>
        {% endif %}
    </div>
    {% endfor %}
