From 4d76f623a81bd2121ad61e36b2dff92d4bec5906 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Mon, 30 Mar 2020 15:05:46 +0200 Subject: [PATCH] Rephrasing `data-prototype` paragraph --- form/form_collections.rst | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/form/form_collections.rst b/form/form_collections.rst index d5d26a873eb..e934548f505 100644 --- a/form/form_collections.rst +++ b/form/form_collections.rst @@ -269,16 +269,14 @@ add the ``allow_add`` option to your collection field:: ]); } -In addition to telling the field to accept any number of submitted objects, the -``allow_add`` also makes a *"prototype"* variable available to you. This "prototype" -is a little "template" that contains all the HTML to be able to render any -new "tag" forms. To render it, make the following change to your template: +The ``allow_add`` option also makes a ``prototype`` variable available to you. +This "prototype" is a little "template" that contains all the HTML needed to +dynamically create any new "tag" forms with JavaScript. To render the prototype, add +the following ``data-prototype`` attribute to the existing ``