Skip to content

Commit 67b8637

Browse files
author
Yurii Zolotko
committed
Fix AppendedText label class (#184)
1 parent 235c641 commit 67b8637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crispy_bootstrap5/templates/bootstrap5/layout/prepended_appended_text.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div id="div_{{ field.auto_id }}" class="mb-3{% if wrapper_class %} {{ wrapper_class }}{% endif %}{% if 'form-horizontal' in form_class %} row{% endif %}{% if form_group_wrapper_class %} {{ form_group_wrapper_class }}{% endif %}{% if form_show_errors and field.errors %} has-danger{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}">
77

88
{% if field.label and form_show_labels %}
9-
<label for="{{ field.id_for_label }}" class="{% if 'form-horizontal' in form_class %}col-form-label {% else %}form-label{% endif %}{{ label_class }}{% if field.field.required %} requiredField{% endif %}">
9+
<label for="{{ field.id_for_label }}" class="{% if 'form-horizontal' in form_class %}col-form-label{% else %}form-label{% endif %} {{ label_class }}{% if field.field.required %} requiredField{% endif %}">
1010
{{ field.label }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
1111
</label>
1212
{% endif %}

0 commit comments

Comments
 (0)