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

Support divisor for MoneyType on list #1995

Closed
webs86 opened this issue Jan 8, 2018 · 3 comments
Closed

Support divisor for MoneyType on list #1995

webs86 opened this issue Jan 8, 2018 · 3 comments

Comments

@webs86
Copy link

webs86 commented Jan 8, 2018

If this is a BUG REPORT:

  • In list action support divisor option. If I configure EasyAdminBundle with a money type with divisor option it doesn't view the correct value. If I insert 100 as value in list I see 10000.
  • EasyAdmin version: 1.17.7
@javiereguiluz
Copy link
Collaborator

@webs86 I'm afraid we don't have (yet) a built-in way to display money values on list/show views. We'll add it in the future if more people ask for it.

Meanwhile you can solve this issue by creating a small Twig fragment to render your property as you wish. It's explained here: https://symfony.com/doc/current/bundles/EasyAdminBundle/book/list-search-show-configuration.html#customizing-the-template-used-to-render-each-property-type

@cryptiklemur
Copy link

Would love to see money values on list/show. Can we re-open this?

@ThomasLandauer
Copy link
Contributor

I created a step-by-step answer at https://stackoverflow.com/a/56970611/1668200

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

No branches or pull requests

4 participants