Skip to content

[BootstrapAdminUi] Add a body hookable to the create/update content composition#375

Open
vvasiloi wants to merge 1 commit into
Sylius:mainfrom
vvasiloi:fix/crud-form-page-body
Open

[BootstrapAdminUi] Add a body hookable to the create/update content composition#375
vvasiloi wants to merge 1 commit into
Sylius:mainfrom
vvasiloi:fix/crud-form-page-body

Conversation

@vvasiloi

@vvasiloi vvasiloi commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Create/update pages render no .page-body, so the form card sits glued to the sticky page header — the header-to-content spacing in Tabler comes from .page-body's top margin against its .page-header sibling.

This adds a body hookable (rendering .page-body) to the create/update content composition; form_error_alert and form move under it.

BC break: hook customizations targeting sylius_admin.common.{create,update}.content.form* must retarget …content.body.form* — documented in the new UPGRADE.md.

Before After
before after

@vvasiloi vvasiloi force-pushed the fix/crud-form-page-body branch 3 times, most recently from 5b8b084 to d11100e Compare July 12, 2026 16:45
@vvasiloi vvasiloi changed the title [BootstrapAdminUi] Wrap CRUD form content in .page-body like the index grid [BootstrapAdminUi] Add a body hookable to the create/update content composition Jul 12, 2026
@vvasiloi vvasiloi force-pushed the fix/crud-form-page-body branch from d11100e to 9b6b7c3 Compare July 12, 2026 17:03
Tabler's header-to-content spacing comes from .page-body's top margin
against its .page-header sibling. The create/update pages render no
.page-body, so the form card sits glued to the sticky header.

BC break: form_error_alert and form move from …content.* to
…content.body.*.
@vvasiloi vvasiloi force-pushed the fix/crud-form-page-body branch from 9b6b7c3 to bca6861 Compare July 12, 2026 17:09
@vvasiloi vvasiloi marked this pull request as ready for review July 12, 2026 17:17
@vvasiloi

Copy link
Copy Markdown
Contributor Author

CI failures are unrelated: ^1.15@alpha now resolves sylius/grid-bundle to 1.16.0-RC.3 (Jul 10), whose GridBuilderInterface BC layer (conditional re-declaration + class_alias from the new Component namespace) trips DebugClassLoader during kernel boot — reproducible on unmodified main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant