File tree 1 file changed +3
-14
lines changed
1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -302,29 +302,18 @@ Multiple Templates
302
302
..................
303
303
304
304
A form can also be customized applying several templates. To do so, pass the
305
- name of all the templates to the ``form_theme `` tag separating them with one
306
- whitespace:
305
+ name of all the templates as an array using the ``with `` keyword:
307
306
308
307
.. code-block :: html+jinja
309
308
310
- {% form_theme form '::common.html.twig' ':Form: fields.html.twig'
311
- 'AcmeDemoBundle:Form: fields.html.twig' %}
309
+ {% form_theme form with [ '::common.html.twig', ':Form: fields.html.twig',
310
+ 'AcmeDemoBundle:Form: fields.html.twig'] %}
312
311
313
312
{# ... #}
314
313
315
314
The templates can be located at different bundles and they can even be stored
316
315
at the global ``app/Resources/views/ `` directory.
317
316
318
- When using the ``with `` keyword, pass the templates as an array:
319
-
320
-
321
- .. code-block :: html+jinja
322
-
323
- {% form_theme form with ['::common.html.twig', ':Form: fields.html.twig',
324
- 'AcmeDemoBundle:Form: fields.html.twig'] %}
325
-
326
- {# ... #}
327
-
328
317
Child Forms
329
318
...........
330
319
You can’t perform that action at this time.
0 commit comments