From 6d764bd0ff15cef4c413cd8f3811cb64687c5140 Mon Sep 17 00:00:00 2001 From: Sylvain Boissel Date: Wed, 13 Nov 2024 17:21:53 +0100 Subject: [PATCH] =?UTF-8?q?[Formulaires]=20Autoriser=20le=20HTML=20dans=20?= =?UTF-8?q?le=20texte=20d=E2=80=99aide=20des=20champs=20de=20formulaire=20?= =?UTF-8?q?(#183)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Allow HTML in help text in form fields * Update version number --- dsfr/templates/dsfr/form_field_snippets/input_snippet.html | 6 ++++-- example_app/forms.py | 2 +- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dsfr/templates/dsfr/form_field_snippets/input_snippet.html b/dsfr/templates/dsfr/form_field_snippets/input_snippet.html index 8dbdbc656..e8746d691 100644 --- a/dsfr/templates/dsfr/form_field_snippets/input_snippet.html +++ b/dsfr/templates/dsfr/form_field_snippets/input_snippet.html @@ -2,10 +2,12 @@ {# Generic input snippet used by most of the field types #}
{% if field.errors %} {% with aria_describedby="aria-describedby:"|add:field.auto_id|add:"-desc-error" %} @@ -19,4 +21,4 @@ {{ field.errors }}
{% endif %} - \ No newline at end of file + diff --git a/example_app/forms.py b/example_app/forms.py index f5dd9fdf0..917a3af2d 100644 --- a/example_app/forms.py +++ b/example_app/forms.py @@ -49,7 +49,7 @@ class ExampleForm(DsfrBaseForm): user_email = forms.EmailField( label="Adresse électronique", - help_text="Format attendu : prenom.nom@domaine.fr", + help_text="Format attendu : prenom.nom@domaine.fr", required=False, ) diff --git a/pyproject.toml b/pyproject.toml index 0de0373db..2828f653b 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.1" +version = "1.4.2" classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment",