-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Finish #1998 #4629
Finish #1998 #4629
Conversation
xabbuh
commented
Dec 11, 2014
Q | A |
---|---|
Doc fix? | no |
New docs? | no |
Applies to | all |
Fixed tickets | replaces #1998 |
3dc4aec
to
f557ef9
Compare
|
||
{% for task in tasks %} | ||
{% include 'AcmeTaskBundle:Task:prototypeTask.html.twig' | ||
with { 'form': form.task.vars.form } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't form.task.vars.form
be task.vars.form
?
f557ef9
to
06bcb61
Compare
If I understand things correctly, this does not use the method proposed by @stof in #1998 (comment), does it? If so, could you please update this? |
I think you're right. Though I'm not sure what exactly needs to be changed. Does this block replace the call to |
Yes, if I understand it correctly Op do 11 dec. 2014 19:25 schreef Christian Flothmann <
|
@stof Can you please confirm if we properly understand your suggestion? |
It's sure that it's not anymore the right way to do since a while... : SF2.1 - http://symfony.com/blog/form-goodness-in-symfony-2-1#collection-improvements) An example to render a collection with list UL :
The prototype attribute will be generated automatically in the right format with LI |
|
||
.. code-block:: html+php | ||
|
||
<!-- src/AppBundle/Resources/views/Form/_tasks_widget.html.php --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I'm stuck how this should look like in the PHP template.
Closing in favor of #5643 |
This PR was merged into the 2.3 branch. Discussion ---------- Document how to customize the prototype Finishes #4629 and #4797 | Q | A | --- | --- | Doc fix? | no | New docs? | yes | Applies to | all | Fixed tickets | - Commits ------- ce8110c Improve docs on customizing prototype rendering 051a23f document how to render custom collection prototypes