{% load i18n %} {% load mtp_common %} {% comment %} USAGE: {% include 'mtp_common/forms/checkbox-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) TODO: the widget is not currently configurable {% endcomment %}
{% with checked=value|default:field.value|default:field.field.initial %} {% endwith %} {% include 'mtp_common/forms/field-label.html' with field=field only %}
{% include 'mtp_common/forms/field-errors.html' with field=field only %}