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

[Reference][Forms] add an introductory table containing all options of the basic form type#3611

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 4 commits intosymfony:2.3fromxabbuh:form-type-options-table
Mar 19, 2014

Conversation

xabbuh
Copy link
Member

QA
Doc fix?yes
New docs?no
Applies toall
Fixed tickets

@@ -4,11 +4,44 @@
form Field Type
===============

See :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType`.

The ``form`` type predefines a couple of options that are then available
on all fields.
Copy link
Member

Choose a reason for hiding this comment

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

all fields that have form as parent. They can also specify another form type as parent, or no parent at all.

@wouterj
Copy link
Member

We may need to seperate it a bit more: As of 2.3, the form type is extracted in aFormType and aBaseType (not included in the form tree), theFormType extends theBaseType.
This is done, because the form buttons use theBaseType and not theFormType.

So we can't say, these options are available on every field. And we may need to make a difference between options of theBaseType and options of theFormType, in cases someone wants to create a custom button.

@xabbuh
Copy link
MemberAuthor

You're right. This also applies to theButtonType docs. But I'm not sure if it is a good idea to create separate docs for theBaseType and reference its options via ainherited options section sinceBaseType is no real form type that can be used.

@wouterj
Copy link
Member

No, I think we should split the Form Type article. Or add something like(BaseType) to the options used by the base type with a little explaination in the beginning why there is a difference betweenBaseType andFormType options.

@xabbuh
Copy link
MemberAuthor

We can go that way. But then the same should be documented for theButtonType. What do you think?

@xabbuhxabbuh mentioned this pull requestMar 4, 2014
17 tasks
@xabbuh
Copy link
MemberAuthor

I added an additional table to theform type listing the options inherited from theBaseType class and added a note to thebutton type reference.

The following options are defined in the
:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\BaseType` class.
The ``BaseType`` class is the parent class for both the ``button`` type and
the :doc:`form type </reference/forms/types/form>` but it is not part of the
Copy link
Member

Choose a reason for hiding this comment

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

I prefer a comma before "but"

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

You're right. That really does make sense.

@xabbuh
Copy link
MemberAuthor

I also added docs for theauto_initialize option.

:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\BaseType` class.
The ``BaseType`` class is the parent class for both the ``button`` type and
the :doc:`form type </reference/forms/types/form>`, but it is not part of
the form type tree (i.e. it can not be used as a form type on its own).
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if I want this level of detail here - I don't think it matters very much what the parent type is when it's "form", and I especially don't think it's very important to say exactly which class you can find the code in. Thoughts?

@weaverryan
Copy link
Member

@xabbuh I think I'm happy with this now :). Can you rebase for me?

@xabbuh
Copy link
MemberAuthor

@weaverryan Of course, here you are.

@weaverryan
Copy link
Member

Awesome, thank you very much!

weaverryan added a commit that referenced this pull requestMar 19, 2014
…ll options of the basic form type (xabbuh)This PR was merged into the 2.3 branch.Discussion----------[Reference][Forms] add an introductory table containing all options of the basic form type| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | all| Fixed tickets |Commits-------b3ca94c removed the description of the auto_initialize option from the button type reference docs58170fe document the auto_initialize option for the form type, refs#34102ca0306 document the options inherited from the BaseType class911cc70 add an introductory table containing all options of the basic form type
@weaverryanweaverryan merged commitb3ca94c intosymfony:2.3Mar 19, 2014
@xabbuhxabbuh deleted the form-type-options-table branchMarch 19, 2014 16:19
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.

3 participants
@xabbuh@wouterj@weaverryan

[8]ページ先頭

©2009-2025 Movatter.jp