{% load crispy_forms_field %} {% load l10n %} {# This is the input template which is rendered within the field.html template #}
{# render checkbox input with built-in widget #} {# Note - see CRISPY_CLASS_CONVERTERS in config/settings/base.py #} {# see https://docs.djangoproject.com/en/dev/ref/forms/widgets/#checkboxinput #} {% include "govuk/widget.html" %} {% if field.label %} {% if hyperlink_label %} {# using label tag causes checkbox to be checked when clicking the link #} {{ field.label|safe }} {% else %} {% endif %} {% endif %} {% include 'govuk/snippets/field_hint.html' with extra_hint_classes='govuk-checkboxes__hint' %}