{% extends 'oscar/partials/form_field.html' %} {% load form_tags %} {% load widget_tweaks %} {% if field.is_hidden %} {{ field }} {% else %} {% comment %} Make the field widget type available to templates so we can mark-up checkboxes differently to other widgets. {% endcomment %} {% annotate_form_field field %} {% block control_group %}
{% block label %} {% if not nolabel and field.widget_type != 'checkbox' %} {% endif %} {% endblock %} {% block controls %}
{% block widget %} {{block.super}} {% endblock %} {% block errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endblock %} {% block help_text %} {{block.super}} {% endblock %}
{% endblock %}
{% endblock %} {% endif %}