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

Add default field for percent type. Fixes #2208. #2374

Merged
merged 1 commit into from
Oct 2, 2018

Conversation

moynzzz
Copy link
Contributor

@moynzzz moynzzz commented Oct 2, 2018

This PR adds missing percent field template.

This field doesn't depend on format configuration it will use type options if provided to render the value properly. If they aren't provided it will use the defaults of the percent type which are type = fractional and scale = 0.

@moynzzz moynzzz changed the base branch from master to 1.x October 2, 2018 11:14
@moynzzz moynzzz closed this Oct 2, 2018
@moynzzz moynzzz reopened this Oct 2, 2018
@javiereguiluz javiereguiluz merged commit b1d0a1d into EasyCorp:1.x Oct 2, 2018
javiereguiluz added a commit that referenced this pull request Oct 2, 2018
This PR was merged into the 1.x branch.

Discussion
----------

Add default field for percent type. Fixes #2208.

This PR adds missing percent field template.

This field doesn't depend on format configuration it will use type options if provided to render the value properly. If they aren't provided it will use the defaults of the percent type which are `type = fractional` and `scale = 0`.

Commits
-------

b1d0a1d Add default field for percent type. Fixes #2208.
@javiereguiluz
Copy link
Collaborator

@moynzzz thanks for adding this missing field template. I made some minor tweaks in the Twig template when merging, but you did it great. By the way, this is probably the last template we're going to add in 1.x branch.

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

Successfully merging this pull request may close these issues.

None yet

2 participants