{% load i18n %} {% comment %} Single checkbox field with no wrapping fieldset USAGE: {% include 'mtp_common/forms/checkbox-single-field.html' with field= only %} optional parameters: input_classes - classes to add to the input element value - input element value override instead of default filtered field value (ignored if None) small - whether smaller boxes should be used TODO: the widget is not currently configurable {% endcomment %}
{% include 'mtp_common/forms/field-errors.html' with field=field only %}
{% with checked=value|default:field.value|default:field.field.initial %}
{% if field.help_text %} {{ field.help_text }} {% endif %}
{% endwith %}