This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Form
Fabien Potencier 5251177002 merged branch helmer/readonly_fix (PR #3258)
Commits
-------

8321593 [Form] DRYed ChoiceType
0753cee [Form] Fixed read_only attribute for expanded fields

Discussion
----------

[Form] Fixed read_only attribute for expanded fields

Expanded choice widgets lose the knowledge of read_only attribute value.

Fixes bug introduced by #3193

---------------------------------------------------------------------------

by helmer at 2012-02-02T16:24:50Z

Please hold before merging, @bschussek had some thoughts about my changes in ``ChoiceType``, waiting for feedback.

---------------------------------------------------------------------------

by bschussek at 2012-02-02T16:33:12Z

I'm fine with the refactoring then, but please split it into two commits at least. The changes in ChoiceType have nothing in common with the actual issue here.

---------------------------------------------------------------------------

by helmer at 2012-02-02T19:40:39Z

Tests added.

---------------------------------------------------------------------------

by bschussek at 2012-02-03T10:14:32Z

Great, thanks.

@fabpot 👍
2012-02-04 07:59:57 +01:00
..
Event fixed CS 2011-06-08 12:16:48 +02:00
Exception [Form] Greatly improved ChoiceListInterface and all of its implementations 2012-01-23 18:28:25 +01:00
Extension merged branch helmer/readonly_fix (PR #3258) 2012-02-04 07:59:57 +01:00
Guess [DoctrineBridge] fixed some CS 2011-12-13 10:22:12 +01:00
Resources/config [Form] Made validation of form children configurable. Set the option "cascade_validation" to true if you need it. 2012-01-16 20:49:43 +01:00
Util [Form] Implemented MergeCollectionListener which calls addXxx() and removeXxx() in your model if found 2012-02-02 11:16:21 +01:00
AbstractExtension.php Remove useless code 2011-07-04 14:08:20 +02:00
AbstractType.php [Form] Fixed a typo in AbstractType phpdoc 2011-08-13 13:43:13 +02:00
AbstractTypeExtension.php Merge branch 'master' into form-phpdoc-2 2011-05-15 19:24:09 +02:00
CallbackTransformer.php [Various] Fixed errors on PHPDocs exception names (TransformationFailedException) 2011-08-09 00:14:29 +02:00
CallbackValidator.php fixed CS 2011-06-08 12:16:48 +02:00
composer.json Revert "merged 2.0" 2012-01-08 20:43:02 +01:00
DataMapperInterface.php fixed CS 2011-06-08 12:16:48 +02:00
DataTransformerInterface.php [Various] Fixed errors on PHPDocs exception names (TransformationFailedException) 2011-08-09 00:14:29 +02:00
Form.php [Form] Forms now don't create empty objects anymore if they are completely empty and not required. The empty data for these forms is null. 2012-02-02 14:40:19 +01:00
FormBuilder.php [Form] Fixed read_only attribute for expanded fields 2012-02-03 11:49:06 +02:00
FormError.php [Form] Added FormError::getMessage() and use it in Form class 2011-11-29 18:26:32 +01:00
FormEvents.php removed the ON_ prefix for Form event names 2011-05-31 07:19:18 +02:00
FormExtensionInterface.php [Form] phpDoc 2011-05-13 11:00:04 +02:00
FormFactory.php [Form] added support for parent of FormBuilder 2012-02-02 10:09:50 +01:00
FormFactoryInterface.php [Form] added support for parent of FormBuilder 2012-02-02 10:09:50 +01:00
FormInterface.php [Form] read_only and disabled attributes 2012-01-31 11:51:22 +02:00
FormTypeExtensionInterface.php fixed CS 2011-06-08 12:16:48 +02:00
FormTypeGuesserChain.php fixed CS 2011-06-08 12:16:48 +02:00
FormTypeGuesserInterface.php [DoctrineBridge] fixed some CS 2011-12-13 10:22:12 +01:00
FormTypeInterface.php fixed CS 2011-06-08 12:16:48 +02:00
FormValidatorInterface.php fixed CS 2011-06-08 12:16:48 +02:00
FormView.php [DoctrineBridge] fixed some CS 2011-12-13 10:22:12 +01:00
LICENSE added LICENSE files for the subtree repositories 2011-02-22 18:58:15 +01:00
README.md tweaked the README files 2011-12-18 14:22:28 +01:00
ReversedTransformer.php [Form] Fix the ReversedTransform class 2011-05-10 20:25:22 +02:00

Form Component

Form provides tools for defining forms, rendering and binding request data to related models. Furthermore it provides integration with the Validation component.

Resources

Silex integration:

https://github.com/fabpot/Silex/blob/master/src/Silex/Provider/FormServiceProvider.php

Unit tests:

https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/Form

Documentation:

http://symfony.com/doc/2.0/book/forms.html