Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Form] Add "range" type #11979 #14289

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

Closed
wants to merge 2 commits into from
Closed

Conversation

Kryniol
Copy link

@Kryniol Kryniol commented Apr 9, 2015

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #11979
License MIT

I've taken over #12693, added tests for rendering and building the form field and fixed some parts. The linked PR could be probably closed if this one is OK. This is my first PR to the Symfony2 repo so please let me know if anything is missing.

@jaytaph
Copy link
Contributor

jaytaph commented Apr 9, 2015

Maybe ValidatorTypeGuesser should also return this range type when the range contraint is found.

@Kryniol
Copy link
Author

Kryniol commented Apr 9, 2015

@jaytaph I'm not sure, this would certainly be a BC breaker...

@Kryniol Kryniol force-pushed the range-field-type branch from 228a80d to fd26a7e Compare April 9, 2015 17:56
@jaytaph
Copy link
Contributor

jaytaph commented Apr 9, 2015

@Kryniol yes, you are right. But it would make more sense to have it guessed to range whenever there is a range constraint.. Maybe this could be postponed to 3.0 (if it's still a good idea)

@Kryniol
Copy link
Author

Kryniol commented Apr 9, 2015

I think it's really nice feature for 3.0. I could take care of that after this PR is done, for now I'm struggling with Travis.

@Kryniol Kryniol force-pushed the range-field-type branch 2 times, most recently from a8ff493 to f03948a Compare April 14, 2015 07:57
crevillo and others added 2 commits April 14, 2015 12:58
[Form] Add range type symfony#11979 - registered RangeType in CoreExtension

[Form] Add range type symfony#11979 - added tests for rendering the form field and validating options

[Form] Add range type symfony#11979 - added copyright lines in RangeTypeTest class

[Form] Add range type symfony#11979 - minor formatting fixes, added author block
@xabbuh xabbuh added the Form label Apr 21, 2015
@mobula9
Copy link

mobula9 commented May 29, 2015

+1

@webmozart
Copy link
Contributor

This was added in #12067. Thanks for the PR @Kryniol!

@webmozart webmozart closed this Jun 17, 2015
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.

6 participants