File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -336,6 +336,20 @@ template and then importing it inside your application configuration:
336
336
Any customized form blocks inside the ``AcmeDemoBundle:Form:fields.html.twig ``
337
337
template will be used globally when form elements are rendered.
338
338
339
+ Standard twig uses the div layout for forms, however some people prefer the table layout.
340
+ The technique to change to the table layout uses the same technique as it is listed above,
341
+ however you will need to change:
342
+
343
+ ``AcmeDemoBundle:Form:fields.html.twig `` to ``TwigBundle:Form:table_layout.html.twig ``
344
+
345
+ Or if you only want to use it so now and then, you can put it in your twig template like this:
346
+
347
+ .. code-block :: html+jinja
348
+
349
+ {% form_theme form 'TwigBundle:Form: table_layout.html.twig' %}
350
+
351
+ Keep in mind the ``form `` in the above code is the variable that contains the ``FormView `` instance here.
352
+
339
353
How to customize an Individual field
340
354
------------------------------------
341
355
You can’t perform that action at this time.
0 commit comments