Commit 4c36ff8
committed
bug #7534 Fix RepeatedType fields not inheriting Bootstrap column classes (Mozoou)
This PR was submitted for the 5.x branch but it was merged into the 4.x branch instead.
Discussion
----------
Fix RepeatedType fields not inheriting Bootstrap column classes
Symfony defines a `repeated_row` block in `form_div_layout.html.twig` hat bypasses `form_row` entirely, rendering only child rows without any column wrapper. This caused fields using RepeatedType (e.g. password confirmation) to lose their Bootstrap grid classes.
Fix by overriding `repeated_row` in EasyAdmin's form theme to apply the same column wrapper logic used in `form_row`.
Fixes [#5676](#5676)
<!--
Thanks for your contribution! If you are proposing a new feature that is complex,
please open an issue first so we can discuss about it.
Note: all your contributions adhere implicitly to the MIT license
-->
Commits
-------
35ac676 Fix RepeatedType fields not inheriting Bootstrap column classes1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
121 | 135 | | |
122 | 136 | | |
123 | 137 | | |
| |||
0 commit comments