Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit de95a37

Browse filesBrowse 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
Copy full SHA for de95a37

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.