Skip to content

Commit

Permalink
minor #6195 Add a Bootstrap CSS class to form field help (javiereguiluz)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.x branch.

Discussion
----------

Add a Bootstrap CSS class to form field help

Fixes #6193

Commits
-------

7844748 Add a Bootstrap CSS class to form field help
  • Loading branch information
javiereguiluz committed Mar 12, 2024
2 parents 271f2d3 + 7844748 commit 74c8985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/views/crud/form_theme.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@
{% if has_input_groups %}</div>{% endif %}

{% if field.help ?? false %}
<small class="form-help">{{ field.help|trans(label_translation_parameters, translation_domain)|raw }}</small>
<small class="form-text form-help">{{ field.help|trans(label_translation_parameters, translation_domain)|raw }}</small>
{% elseif form.vars.help ?? false %}
<small class="form-help">{{ form.vars.help|trans(form.vars.help_translation_parameters, form.vars.translation_domain)|raw }}</small>
<small class="form-text form-help">{{ form.vars.help|trans(form.vars.help_translation_parameters, form.vars.translation_domain)|raw }}</small>
{% endif %}

{{- form_errors(form) -}}
Expand Down

0 comments on commit 74c8985

Please sign in to comment.