We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e1488e commit 4590c01Copy full SHA for 4590c01
cookbook/form/form_collections.rst
@@ -803,5 +803,10 @@ contents of the collection when it already holds items:
803
This makes sure the displayed items are the same as the newly inserted
804
from the prototype.
805
806
+But if you are in the situation were you need to have a complete custom prototype you can render it yourself:
807
+
808
+ .. code-block:: html+jinja
809
+ data-prototype="{% filter escape %}{% include 'AcmeTaskBundle:Task:prototypeTask.html.twig' with { 'form': form.task.get('prototype') } %}{% endfilter %}"
810
811
.. _`Owning Side and Inverse Side`: http://docs.doctrine-project.org/en/latest/reference/unitofwork-associations.html
812
.. _`JSFiddle`: http://jsfiddle.net/847Kf/4/
0 commit comments