Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix leftover in services where constructor dont regonise this parameter #5972

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Fix leftover in services where constructor dont regonise this parameter #5972

merged 1 commit into from
Oct 24, 2023

Conversation

nvdbeek
Copy link
Contributor

@nvdbeek nvdbeek commented Oct 24, 2023

Solves: a3f4e9a#r130786051

If you want, I can write an integration test against the extension to prevent this problem in the future

nvdbeek referenced this pull request Oct 24, 2023
…eguiluz)

This PR was squashed before being merged into the 4.x branch.

Discussion
----------

Added a feature to include columns inside forms

This PR is BIG and includes some very important and nice changes:

* You can now divide a form into columns with `FormField::addColumn()`. Combine this with form tabs and fieldsets to create super complex forms very easily.
* The `detail` page FINALLY shows the SAME design as new/edit pages. Form tabs, columns, fieldsets, etc. Everything looks exactly how you expect. Finally!!

If you want to review this, the most important things are:

* The new `FormLayoutFactory` is the key. It transforms the form config (which is optimized for developers using EasyAdmin) into a linear list of layout + field items (which is optimized for rendering it in Twig templates and Symfony Form themes templates).
* Check out the `FormLayoutFactoryTest` to see many practical examples of the work that this new class does to flatten and linearize the layout configuration.

In the coming days I'm going to provide:

* More and better docs about form layouts
* Some design tweaks
* Fixes in the code for the bugs reported by the community

Thanks!

Commits
-------

d289100 Added a feature to include columns inside forms
@javiereguiluz
Copy link
Collaborator

Thanks @nvdbeek.

@javiereguiluz
Copy link
Collaborator

It's fine to merge this "as si" without adding a test. Thanks!

@javiereguiluz javiereguiluz merged commit e59d14c into EasyCorp:4.x Oct 24, 2023
19 checks passed
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.

2 participants