From ab6317fc6fefe45de6eee11b40610eade4a5c8a0 Mon Sep 17 00:00:00 2001 From: Sylvain Boissel Date: Wed, 13 Nov 2024 17:38:01 +0100 Subject: [PATCH] Support for HTML forms in all field types (#184) --- dsfr/templates/dsfr/form_field_snippets/checkbox_snippet.html | 2 +- .../form_field_snippets/checkboxselectmultiple_snippet.html | 2 +- .../templates/dsfr/form_field_snippets/radioselect_snippet.html | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dsfr/templates/dsfr/form_field_snippets/checkbox_snippet.html b/dsfr/templates/dsfr/form_field_snippets/checkbox_snippet.html index 48e3c3265..d13630438 100644 --- a/dsfr/templates/dsfr/form_field_snippets/checkbox_snippet.html +++ b/dsfr/templates/dsfr/form_field_snippets/checkbox_snippet.html @@ -10,7 +10,7 @@ {% if field.errors %} diff --git a/dsfr/templates/dsfr/form_field_snippets/checkboxselectmultiple_snippet.html b/dsfr/templates/dsfr/form_field_snippets/checkboxselectmultiple_snippet.html index 66213be14..182132fcd 100644 --- a/dsfr/templates/dsfr/form_field_snippets/checkboxselectmultiple_snippet.html +++ b/dsfr/templates/dsfr/form_field_snippets/checkboxselectmultiple_snippet.html @@ -9,7 +9,7 @@ * {% endif %} {% if field.help_text %} - {{ field.help_text }} + {{ field.help_text|safe }} {% endif %}
diff --git a/dsfr/templates/dsfr/form_field_snippets/radioselect_snippet.html b/dsfr/templates/dsfr/form_field_snippets/radioselect_snippet.html index 6c4d49a7c..a3600ee75 100644 --- a/dsfr/templates/dsfr/form_field_snippets/radioselect_snippet.html +++ b/dsfr/templates/dsfr/form_field_snippets/radioselect_snippet.html @@ -9,7 +9,7 @@ * {% endif %} {% if field.help_text %} - {{ field.help_text }} + {{ field.help_text|safe }} {% endif %}
diff --git a/pyproject.toml b/pyproject.toml index 2828f653b..66d1be6cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ authors = ["Sylvain Boissel "] description = "Integrate the French government Design System into a Django app" license = "MIT" name = "django-dsfr" -version = "1.4.2" +version = "1.4.3" classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment",