-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Template][Events] Part of new UI bundle events for security and grid #14101
Conversation
ernestWarwas
commented
Jun 22, 2022
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
License | MIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the base branch to 1.11
src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig
Outdated
Show resolved
Hide resolved
1243098
to
b0cf8fe
Compare
src/Sylius/Bundle/UiBundle/Resources/views/Grid/_content.html.twig
Outdated
Show resolved
Hide resolved
{% endif %} | ||
{{ pagination.simple(data) }} | ||
</div> | ||
{{ sylius_template_event('sylius.admin.grid.content', _context) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could think about more then one event being triggered here, like generic grid, admin/shop and resource if exists. You may check how it may be done here for example here: src/Sylius/Bundle/AdminBundle/Resources/views/Crud/create.html.twig
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will do it in separate PR 😃
0a8143c
to
ecd8588
Compare
04e5f6e
to
de07e48
Compare
[Template][Events] Changed names of events [Template][Events] Changed names of events [Template][Events] Changed names of events order changed fix BC fix render rest
76d8d76
to
76208b4
Compare
Thanks, Ernest! 🎉 |
sylius.grid: | ||
blocks: | ||
content: | ||
template: "@SyliusUi/Grid/_content.html.twig" | ||
priority: 10 | ||
|
||
sylius.grid.body: | ||
blocks: | ||
navigation: | ||
template: "@SyliusUi/Grid/Body/_navigation.html.twig" | ||
priority: 30 | ||
table: | ||
template: "@SyliusUi/Grid/Body/_table.html.twig" | ||
priority: 20 | ||
pagination: | ||
template: "@SyliusUi/Grid/Body/_pagination.html.twig" | ||
priority: 10 | ||
|
||
sylius.grid.filters: | ||
blocks: | ||
content: | ||
template: "@SyliusUi/Grid/Filter/_content.html.twig" | ||
priority: 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These configs have to go to UiBundle
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | |-----------------|--------------------------------------------------------------| | Branch? | 1.11| | Bug fix? | yes | | New feature? | no | | BC breaks? | no | | Deprecations? | no| | Related tickets | fixes https://github.com/Sylius/Sylius/pull/14101| | License | MIT | <!-- - Bug fixes must be submitted against the 1.10 or 1.11 branch(the lowest possible) - Features and deprecations must be submitted against the master branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html --> Commits ------- 58e66f9 [Templates] Move grid events to UI bundle