diff --git a/cookbook/form/dynamic_form_modification.rst b/cookbook/form/dynamic_form_modification.rst index b963bab1e5d..bd4f60e0165 100644 --- a/cookbook/form/dynamic_form_modification.rst +++ b/cookbook/form/dynamic_form_modification.rst @@ -653,7 +653,31 @@ field according to the current selection in the ``sport`` field: {# ... #} {{ form_end(form) }} - .. include:: /cookbook/form/dynamic_form_modification_ajax_js.rst.inc + .. code-block:: html+php @@ -664,7 +688,31 @@ field according to the current selection in the ``sport`` field: end($form) ?> - .. include:: /cookbook/form/dynamic_form_modification_ajax_js.rst.inc + The major benefit of submitting the whole form to just extract the updated ``position`` field is that no additional server-side code is needed; all the diff --git a/cookbook/form/dynamic_form_modification_ajax_js.rst.inc b/cookbook/form/dynamic_form_modification_ajax_js.rst.inc deleted file mode 100644 index 09e255808db..00000000000 --- a/cookbook/form/dynamic_form_modification_ajax_js.rst.inc +++ /dev/null @@ -1,25 +0,0 @@ - \ No newline at end of file