Skip to content

Commit 2c8a547

Browse files
khepinweaverryan
authored andcommitted
Fix formatting
1 parent fab2805 commit 2c8a547

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/form/form_collections.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ The first thing we need to do is to let our form collection know that it will
257257
receive an unknown number of tags. So far we added two and the form type
258258
expects to receive two as well otherwise an error will be thrown:
259259
``This form should not contain extra fields``. For this we add the ``'allow_add'``
260-
option to our collection field.
260+
option to our collection field::
261261

262262
// src/Acme/TaskBundle/Form/Type/TaskType.php
263263
namespace Acme\TaskBundle\Form\Type;
@@ -297,7 +297,7 @@ a new tag at the time we save the todo and its tags together.
297297

298298
The ``allow_add`` option also does one more thing. It will add a ``data-prototype``
299299
property to the ``div`` containing the tag collection. This property
300-
contains html to add a Tag form element to our page like this:
300+
contains html to add a Tag form element to our page like this::
301301

302302
<div data-prototype="&lt;div&gt;&lt;label class=&quot; required&quot;&gt;$$name$$&lt;/label&gt;&lt;div id=&quot;khepin_productbundle_producttype_tags_$$name$$&quot;&gt;&lt;div&gt;&lt;label for=&quot;khepin_productbundle_producttype_tags_$$name$$_name&quot; class=&quot; required&quot;&gt;Name&lt;/label&gt;&lt;input type=&quot;text&quot; id=&quot;khepin_productbundle_producttype_tags_$$name$$_name&quot; name=&quot;khepin_productbundle_producttype[tags][$$name$$][name]&quot; required=&quot;required&quot; maxlength=&quot;255&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;" id="khepin_productbundle_producttype_tags">
303303
</div>
@@ -307,7 +307,7 @@ new Tag forms. To make things simple, we will embed jQuery in our page
307307
as it allows for more simple cross-browser manipulation of the page.
308308

309309
First let's add a link on the ``new`` form with a class ``add_tag_link``.
310-
Everytime this is clicked by the user, we will add an empty tag for him.
310+
Everytime this is clicked by the user, we will add an empty tag for him::
311311

312312
{% extends "::base.html.twig" %}
313313
{% block body %}
@@ -343,7 +343,7 @@ the form elements when the link is clicked.
343343
It is better to separate your javascript in real js files than
344344
to write it inside the HTML as we are doing here.
345345
346-
Our script can be as simple as this:
346+
Our script can be as simple as this::
347347

348348
<script>
349349
function addTagForm() {

0 commit comments

Comments
 (0)