Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de95a37

Browse files
committed
bug #25127 [TwigBridge] Pass the form-check-inline in parent (Simperfit)
This PR was merged into the 3.4 branch. Discussion ---------- [TwigBridge] Pass the form-check-inline in parent | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | no | Fixed tickets | #25099 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | none I'm trying to find a way to be able to handle this. Will add a reproducer soon. Commits ------- 02b7edb [TwigBridge][WIP] Pass the form-check-inline in parent
2 parents 86d01b5 + 02b7edb commit de95a37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-check-input')|trim}) -%}
7575
{% if 'checkbox-inline' in parent_label_class %}
7676
{{- form_label(form, null, { widget: parent() }) -}}
77+
{% elseif 'form-check-inline' in parent_label_class %}
78+
<div class="form-check{{ not valid ? ' form-control is-invalid' }} form-check-inline">
79+
{{- form_label(form, null, { widget: parent() }) -}}
80+
</div>
7781
{% else -%}
7882
<div class="form-check{{ not valid ? ' form-control is-invalid' }}">
7983
{{- form_label(form, null, { widget: parent() }) -}}

0 commit comments

Comments
 (0)