{# Created on Mon Jan 24 13:32:00 2022 @author: alica.burlot #} {# base template for all forms #} {# to be extended in the templates where a form is displayed #} {# Check django comments for more information #} {# extends your base.html template #} {% extends "django_cfran/base.html" %} {% load static cfran_tags widget_tweaks %} {% comment %} Radio button and multiple checkboxes : -Help text under each button/checkbox : In your forms.py, in the ChoiceField or MultipleChoiceField, instead of choices=(("a", "label a"), ("b", "label b"), ...), put choices=(("a", {"label":"label a", "help_text":"help text a"}), ("b", {"label":"label b", "help_text":"help text b"})), -Horizontal list of buttons/checkboxes : In your forms.py, in the RadioSelect widget or the CheckboxSelectMultiple widget, put attrs={"class":"cfran-fieldset--inline"} {% endcomment %} {% block extra_css %} {% endblock extra_css %} {% block content %} {# Everything that needs to be outside the form, before #} {% block before_form %} {% endblock before_form %}