Make horizontal form column layout configurable via global Twig variables#1293
Merged
Make horizontal form column layout configurable via global Twig variables#1293
Conversation
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Make form column layout configurable with global twig variables
Make horizontal form column layout configurable via global Twig variables
Mar 7, 2026
…l, offset_col Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Member
|
@copilot Rename |
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Contributor
Author
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1293 +/- ##
============================================
- Coverage 55.54% 55.53% -0.01%
Complexity 8271 8271
============================================
Files 611 611
Lines 26556 26556
============================================
- Hits 14750 14748 -2
- Misses 11806 11808 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hardcoded
col-sm-3/col-sm-9Bootstrap grid classes were scattered across 27+ templates, making global layout adjustments impossible without a mass find-replace.Approach
Three global Twig variables defined in
config/packages/twig.yaml:extended_bootstrap_layout.html.twig—form_label_class/form_group_classblocks now referencecol_label/col_input, propagating to all Symfony Form-rendered horizontal fields automaticallycol-sm-3,col-sm-9,offset-sm-3occurrences with the new variables (modals, admin panels, filters, EDA forms, label system dialogs, 2FA settings, etc.)Layout change
On
lg+screens labels narrow to 2/12 columns (col-lg-2) and inputs widen to 10/12 (col-lg-10). Thesm/mdbreakpoint behaviour is unchanged.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.