Skip to content

Commit 83ae106

Browse files
author
daFish
committed
Formatting.
1 parent f5c6876 commit 83ae106

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

cookbook/form/form_collections.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -737,19 +737,22 @@ the relationship between the removed ``Tag`` and ``Task`` object.
737737
Render a custom prototype
738738
-------------------------
739739

740-
Most of the time the provided prototype will be sufficient for your needs and does not need to be changed.
741-
Should you need to render a prototype for your own specific needs a
742-
But if you are in the situation were you need to have a complete custom prototype you can render it yourself:
740+
Most of the time the provided prototype will be sufficient for your needs
741+
and does not need to be changed. But if you are in the situation were
742+
you need to have a complete custom prototype you can render it yourself:
743743

744744
.. code-block:: html+jinja
745745
data-prototype="{% filter escape %}{% include 'AcmeTaskBundle:Task:prototypeTask.html.twig' with { 'form': form.task.get('prototype') } %}{% endfilter %}"
746746

747-
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
748-
also use this markup to render the contents of the collection when it already holds items:
747+
The included `AcmeTaskBundle:Task:prototypeTask.html.twig` contains the
748+
markup used for the prototype. This way you can not only easily structure
749+
your prototype-markup, you can also use this markup to render the
750+
contents of the collection when it already holds items:
749751

750752
.. code-block:: html+jinja
751753
{% for task in tasks %}
752754
{% include 'AcmeTaskBundle:Task:prototypeTask.html.twig' with { 'form': form.task.vars.form } %}
753755
{% endfor %}
754756

755-
This makes sure the displayed items are the same as the newly inserted from the prototype.
757+
This makes sure the displayed items are the same as the newly inserted
758+
from the prototype.

0 commit comments

Comments
 (0)