Template layout/help_text.html:
{% if field.help_text %}
{% if help_text_inline %}
<span id="hint_{{ field.auto_id }}" class="text-muted">{{ field.help_text }}</span>
{% else %}
<small id="hint_{{ field.auto_id }}" class="form-text text-muted">{{ field.help_text }}</small>
{% endif %}
{% endif %}
With Bootstrap 5, .form-text no longer sets the display property; therefore both help labels should use .form-text, but different tags (span for inline, div for block) or .d-* modifier classes.
Furthermore, .form-text applies $form-text-color, which defaults to $text-muted; therefore, .text-muted may be omitted.
Template layout/help_text.html:
With Bootstrap 5,
.form-textno longer sets thedisplayproperty; therefore both help labels should use.form-text, but different tags (spanfor inline,divfor block) or.d-*modifier classes.Furthermore,
.form-textapplies$form-text-color, which defaults to$text-muted; therefore,.text-mutedmay be omitted.