Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[WIP][Reference][Form Types] Update "radio" form type#3433

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 3 commits intosymfony:2.3frombicpi:update_radio_form_type
Jan 21, 2014
Merged

[WIP][Reference][Form Types] Update "radio" form type#3433

weaverryan merged 3 commits intosymfony:2.3frombicpi:update_radio_form_type
Jan 21, 2014

Conversation

bicpi
Copy link
Contributor

QA
Doc fix?yes
New docs?no
Applies to2.3+
Fixed tickets#3410

radio's parent ischeckbox, notform.

I need some help regarding the taskvalue option should be removed from this type:
Should it really be removed? It's because I'm able to set it and it is used in the HTML output. I'm retrieving a boolean value only when I access the submitted data via the form framework but I have also access to the raw, custom value via e.g.$request->request->get('my_checkbox'). So maybe it should be moved to theinherited options instead for theradio field? If yes, the wording would need an update for thevalue option and if no, why keep it for thecheckbox field?

@@ -27,7 +27,7 @@ If you want to have a Boolean field, use :doc:`checkbox </reference/forms/types/
| | - `error_mapping`_ |
| | - `mapped`_ |
+-------------+---------------------------------------------------------------------+
| Parent type | :doc:`form </reference/forms/types/form>` |
| Parent type | :doc:`form </reference/forms/types/checkbox>` |
Copy link
Member

Choose a reason for hiding this comment

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

form should also be changed to checkbox

@wouterj
Copy link
Member

You're correct about the value type. In the Inherited Options sections, add a new thing at first which starts with: " These options inherit from the :doc:checkbox </reference/forms/types/checkbox> type:" and then document the value option

@bicpi
Copy link
ContributorAuthor

@wouterj Thevalue option has it's own file now and I tweaked the content a little bit to also fit with radios.

@wouterj
Copy link
Member

👍

@xabbuh
Copy link
Member

Can you rebase this?

@bicpi
Copy link
ContributorAuthor

@xabbuh Ups, that was a rebase on master by mistake. Mh, good question how to roll this back...

@bicpi
Copy link
ContributorAuthor

@xabbuh Now the rebase should be okay.

@xabbuh
Copy link
Member

👍 great@bicpi, this should make life easier for@weaverryan since#3416 was merged in the meantime

@wouterj
Copy link
Member

yes, it's succesfully rebased!

@weaverryan
Copy link
Member

Great work Philipp! This is very subtle, tough to get perfectly. Thanks for your attention on it.

weaverryan added a commit that referenced this pull requestJan 21, 2014
This PR was merged into the 2.3 branch.Discussion----------[WIP][Reference][Form Types] Update "radio" form type| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | 2.3+| Fixed tickets |#3410`radio`'s parent is `checkbox`, not `form`.I need some help regarding the task *value option should be removed from this type*:Should it really be removed? It's because I'm able to set it and it is used in the HTML output. I'm retrieving a boolean value only when I access the submitted data via the form framework but I have also access to the raw, custom value via e.g. `$request->request->get('my_checkbox')`. So maybe it should be moved to the `inherited options` instead for the `radio` field? If yes, the wording would need an update for the `value` option and if no, why keep it for the `checkbox` field?Commits-------322b21e Update&Outsource "value" option & update referencesbe47b90 Fix parent type doc reference22b3d0c [Reference][Form Types] Update "radio" form type
@weaverryanweaverryan merged commit322b21e intosymfony:2.3Jan 21, 2014
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@bicpi@wouterj@xabbuh@weaverryan

[8]ページ先頭

©2009-2025 Movatter.jp