Fabien Potencier
f7da1f0eb8
added some unit tests (and fixed some bugs)
2013-01-10 16:26:59 +01:00
Fabien Potencier
9aaceb19ee
moved the logic from HttpKernel in FrameworkBundle to the HttpKernel component
2013-01-10 09:21:30 +01:00
Fabien Potencier
f0d9be02f5
[TwigBridge] added an extension for the HttpKernel component
2012-12-16 17:46:42 +01:00
Fabien Potencier
e553e65047
moved the Twig CodeExtension from the bundle to the bridge
2012-12-12 12:26:16 +01:00
Fabien Potencier
b27b749025
made usage of Composer autoloader for subtree-split unit tests
2012-11-09 14:10:06 +01:00
Bernhard Schussek
2607390309
[Form] Fixed SearchAndRenderBlockNode to really ignore empty labels
2012-07-25 19:15:43 +02:00
Fabien Potencier
2bc358dbcd
merged branch bschussek/issue5029 (PR #5042 )
...
Commits
-------
fb002d8
[Form] Fixed variable passing from outer to inner blocks of the same FormView instance
Discussion
----------
[Form] Fixed variable passing from outer to inner blocks of the same FormView instance
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #5029
Todo: -
This PR fixes two bugs.
The first bug is described in #5029 . The second parameter to the "form_label" function in Twig, if given, always overwrote whatever label was defined previously.
```
{# null would overwrite whatever is currently set #}
form_label(form, null, { ... })
```
The second bug affected passing variables from outer to inner blocks. In the following example, "label_attr" would not be forwarded to the "form_label" function.
```
form_row(form, { "label_attr": { "class": "my_class" }})
```
Both bugs are fixed now.
2012-07-25 17:21:35 +02:00
Bernhard Schussek
fb002d89ea
[Form] Fixed variable passing from outer to inner blocks of the same FormView instance
2012-07-25 13:20:23 +02:00
Bernhard Schussek
686bf6b664
[Form] Made original data of a form and choices accessible in templates
2012-07-23 19:24:46 +02:00
Bernhard Schussek
dc3a680cd3
[Form] Improved FormRenderer API to reduce the size of the function call stack during rendering
2012-07-22 09:29:35 +02:00
Bernhard Schussek
921681658c
[Form] Turned Twig filters into tests
2012-07-21 17:26:50 +02:00
Bernhard Schussek
5984b18a7a
[Form] Precalculated the closure for deciding whether a choice is selected (PHP +30ms, Twig +30ms)
2012-07-21 12:56:50 +02:00
Fabien Potencier
e0409f5218
fixed some tests
2012-07-18 10:08:52 +02:00
Bernhard Schussek
629093ed25
[Form] Extracted common parts of FormHelper and FormExtension into separate classes
2012-07-16 21:39:27 +02:00
Bernhard Schussek
69e5e58629
[Form] Individual rows of CollectionType cannot be styled anymore for performance reasons
2012-07-14 12:10:29 +02:00
Fabien Potencier
878e86db8a
added global variables access in a form theme ( closes #3058 )
2012-07-10 11:44:08 +02:00
Fabien Potencier
d100ffaf76
fixed CS
2012-07-09 14:54:20 +02:00
Bernhard Schussek
2e6cdd15c5
[Form] Inverted the logic of "single_control" and renamed it to "compound". The opposite is now "simple".
2012-05-25 12:34:16 +02:00
Bernhard Schussek
877d8f7195
[Form] Reversed the order of $type and $name in FormFactory::createNamed[Builder]()
2012-05-25 12:34:16 +02:00
Fabien Potencier
aa3e1a3b8c
merged 2.0
2012-05-21 16:05:28 +02:00
William DURAND
a1e3a597b0
[TwigBridge] Switched to composer
2012-05-12 18:56:48 +02:00
Bernhard Schussek
d3bb4d085c
[Form] Renamed option 'primitive' to 'single_control'
2012-04-27 10:18:25 +02:00
Bernhard Schussek
eb75ab1b74
[Form] Fixed results of the FieldType+FormType merge.
2012-04-27 09:47:16 +02:00
Bernhard Schussek
fcb2227ac9
[Form] Deprecated FieldType, which has been merged into FormType
2012-04-17 16:44:39 +02:00
Eriksen Costa
dad1750dfa
[TwigBridge] updated TestCase as an abstract class
2012-04-07 18:49:17 -03:00
Eriksen Costa
140ac2014e
[TwigBridge] fixed bootstrap
2012-04-07 18:47:00 -03:00
Fabien Potencier
fea6b79acd
moved component and bridge unit tests to the src/ directory
...
This is the first step to make each Symfony Component and Bridge self-contained.
2012-03-29 08:37:22 +02:00