Skip to content

Commit fda8156

Browse files
author
daFish
committed
Formatting.
1 parent 100f689 commit fda8156

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

cookbook/form/form_collections.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -664,18 +664,22 @@ the relationship between the removed ``Tag`` and ``Task`` object.
664664
Render a custom prototype
665665
-------------------------
666666

667-
Most of the time the provided prototype will be sufficient for your needs and does not need to be changed.
668-
But if you are in the situation were you need to have a complete custom prototype you can render it yourself:
667+
Most of the time the provided prototype will be sufficient for your needs
668+
and does not need to be changed. But if you are in the situation were
669+
you need to have a complete custom prototype you can render it yourself:
669670

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

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

676679
.. code-block:: html+jinja
677680
{% for task in tasks %}
678681
{% include 'AcmeTaskBundle:Task:prototypeTask.html.twig' with { 'form': form.task.vars.form } %}
679682
{% endfor %}
680683

681-
This makes sure the displayed items are the same as the newly inserted from the prototype.
684+
This makes sure the displayed items are the same as the newly inserted
685+
from the prototype.

0 commit comments

Comments
 (0)