From b0f426e51a9bb2478fbb1f3bee461c95591c0ae6 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 5 Jun 2020 17:01:46 +0200 Subject: [PATCH] core: fix help_text not always being shown on horizontal form --- passbook/core/templates/partials/form_horizontal.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/passbook/core/templates/partials/form_horizontal.html b/passbook/core/templates/partials/form_horizontal.html index facce648e..7152e2451 100644 --- a/passbook/core/templates/partials/form_horizontal.html +++ b/passbook/core/templates/partials/form_horizontal.html @@ -18,6 +18,9 @@ {% if c.data.selected %} checked {% endif %}> + {% if field.help_text %} +

{{ field.help_text }}

+ {% endif %} {% endfor %} {% elif field.field.widget|fieldtype == 'Select' %}
{{ field|css_class:"pf-c-form-control" }} + {% if field.help_text %} +

{{ field.help_text }}

+ {% endif %}
{% elif field.field.widget|fieldtype == 'CheckboxInput' %}