Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Form] Added "collection_entry" block prefix to CollectionType entries #36088

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

Merged
merged 1 commit into from
Mar 17, 2020

Conversation

HeahDude
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #36039
License MIT
Doc PR TODO

Allows to use global collection_entry_row, collection_entry_label, collection_entry_widget and collection_entry_errors themes after dynamic _form_name_collection_name_entry_* ones.

Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of this.

@HeahDude HeahDude force-pushed the feat/collection_entry-block_prefix branch 3 times, most recently from 45feb67 to 5fbc7ca Compare March 15, 2020 22:02
@fabpot
Copy link
Member

fabpot commented Mar 16, 2020

@javiereguiluz Can you test this one and report?

@javiereguiluz
Copy link
Member

I've just tested this. I added the changes in CollectionType.php ... but it didn't work for me. I tried adding {% block collection_entry_row %} FOO {% endblock %} and {% block collection_entry_widget %} FOO {% endblock %} in my form theme ... but I don't see any difference. What could I be doing wrong? Thanks.

@HeahDude
Copy link
Contributor Author

Thanks for the feedback. That is weird I successfully tried with the Symfony demo app using the fields.html.twig yesterday. Are you sure there is not dynamic _field_name_* template with precedence?

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that this works as expected.

This morning @HeahDude helped me debug the problem ... I copy+pasted the CollectionType changes in the wrong file ... after copying them in the right file, everything is working perfectly!

@xabbuh
Copy link
Member

xabbuh commented Mar 17, 2020

@HeahDude Can you make fabbot happy? :)

@xabbuh xabbuh added this to the next milestone Mar 17, 2020
@HeahDude HeahDude force-pushed the feat/collection_entry-block_prefix branch from 5fbc7ca to 5e459b2 Compare March 17, 2020 09:06
@HeahDude HeahDude force-pushed the feat/collection_entry-block_prefix branch from 5e459b2 to 2ff1f88 Compare March 17, 2020 09:07
@HeahDude
Copy link
Contributor Author

@xabbuh done, I've also updated the changelog.

@xabbuh
Copy link
Member

xabbuh commented Mar 17, 2020

Thank you Jules.

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

Successfully merging this pull request may close these issues.

[Form] Allow to customize individual collection items in form themes
7 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.