Skip to content

Commit 63a2725

Browse files
daFishxabbuh
daFish
authored andcommitted
Formatting.
1 parent 4e8637f commit 63a2725

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

cookbook/form/form_collections.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -803,20 +803,5 @@ contents of the collection when it already holds items:
803803
This makes sure the displayed items are the same as the newly inserted
804804
from the prototype.
805805

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-
The included `AcmeTaskBundle:Task:prototypeTask.html.twig` contains the markup used for the prototype. This way you can not only easily structure your prototype-markup, you can
812-
also use this markup to render the contents of the collection when it already holds items:
813-
814-
.. code-block:: html+jinja
815-
{% for task in tasks %}
816-
{% include 'AcmeTaskBundle:Task:prototypeTask.html.twig' with { 'form': form.task.vars.form } %}
817-
{% endfor %}
818-
819-
This makes sure the displayed items are the same as the newly inserted from the prototype.
820-
821806
.. _`Owning Side and Inverse Side`: http://docs.doctrine-project.org/en/latest/reference/unitofwork-associations.html
822807
.. _`JSFiddle`: http://jsfiddle.net/847Kf/4/

0 commit comments

Comments
 (0)