8000 Update form_collections.rst · symfony/symfony-docs@929587e · GitHub
[go: up one dir, main page]

Skip to content

Commit 929587e

Browse files
Update form_collections.rst
Moving the "If you want to customize the HTML code" note upwards too, right after the "On the rendered page" code block
1 parent 27acec3 commit 929587e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

form/form_collections.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ On the rendered page, the result will look something like this:
286286

287287
<ul class="tags" data-prototype="&lt;div&gt;&lt;label class=&quot; required&quot;&gt;__name__&lt;/label&gt;&lt;div id=&quot;task_tags___name__&quot;&gt;&lt;div&gt;&lt;label for=&quot;task_tags___name___name&quot; class=&quot; required&quot;&gt;Name&lt;/label&gt;&lt;input type=&quot;text&quot; id=&quot;task_tags___name___name&quot; name=&quot;task[tags][__name__][name]&quot; required=&quot;required&quot; maxlength=&quot;255&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;">
288288

289+
.. seealso::
290+
291+
If you want to customize the HTML code in the prototype, see
292+
:ref:`form-custom-prototype`.
293+
289294
.. note::
290295

291296
If you render your whole "tags" sub-form at once (e.g. ``form_row(form.tags)``),
@@ -389,11 +394,6 @@ into new ``Tag`` objects and added to the ``tags`` property of the ``Task`` obje
389394

390395
You can find a working example in this `JSFiddle`_.
391396

392-
.. seealso::
393-
394-
If you want to customize the HTML code in the prototype, read
395-
:ref:`form-custom-prototype`.
396-
397397
To make handling these new tags easier, add an "adder" and a "remover" method
398398
for the tags in the ``Task`` class::
399399

0 commit comments

Comments
 (0)
0