From 60bef36f31147c2a1134be0a2e3a168256a46b89 Mon Sep 17 00:00:00 2001 From: sonny Date: Mon, 27 Jul 2020 20:48:32 +0200 Subject: [PATCH] Only render help text when set --- src/newsreader/templates/components/form/form.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/newsreader/templates/components/form/form.html b/src/newsreader/templates/components/form/form.html index d854eb1..e183c25 100644 --- a/src/newsreader/templates/components/form/form.html +++ b/src/newsreader/templates/components/form/form.html @@ -26,7 +26,10 @@ {{ field.errors }} {{ field }} - {% include "components/form/help-text.html" %} + + {% if field.help_text %} + {% include "components/form/help-text.html" %} + {% endif %} {% endfor %}