@@ -114,7 +114,7 @@ some or all of its fragments.
114114For example, when the widget of an ``integer `` type field is rendered, an ``input ``
115115``number `` field is generated
116116
117- .. code-block :: html+ twig
117+ .. code-block :: twig
118118
119119 {{ form_widget(form.age) }}
120120
@@ -272,7 +272,7 @@ Now that you've created the customized form block, you need to tell Symfony
272272to use it. Inside the template where you're actually rendering your form,
273273tell Symfony to use the template via the ``form_theme `` tag:
274274
275- .. code-block :: html+ twig
275+ .. code-block :: twig
276276
277277 {% form_theme form 'form/fields.html.twig' %}
278278
@@ -288,7 +288,7 @@ Multiple Templates
288288A form can also be customized by applying several templates. To do this, pass the
289289name of all the templates as an array using the ``with `` keyword:
290290
291- .. code-block :: html+ twig
291+ .. code-block :: twig
292292
293293 {% form_theme form with ['common.html.twig', 'form/fields.html.twig'] %}
294294
@@ -307,7 +307,7 @@ of Symfony applications (and so you can't control what themes are defined global
307307
308308You can do this by including the ``only `` keyword after the list of form themes:
309309
310- .. code-block :: html+ twig
310+ .. code-block :: twig
311311
312312 {% form_theme form with ['common.html.twig', 'form/fields.html.twig'] only %}
313313
@@ -321,7 +321,7 @@ You can do this by including the ``only`` keyword after the list of form themes:
321321 yourself, or extend one of the built-in form themes with Twig's ``use ``
322322 keyword instead of ``extends `` to re-use the original theme contents.
323323
324- .. code-block :: html+ twig
324+ .. code-block :: twig
325325
326326 {# app/Resources/views/common.html.twig #}
327327 {% use "form_div_layout.html.twig" %}
@@ -333,14 +333,14 @@ Child Forms
333333
334334You can also apply a form theme to a specific child of your form:
335335
336- .. code-block :: html+ twig
336+ .. code-block :: twig
337337
338338 {% form_theme form.a_child_form 'form/fields.html.twig' %}
339339
340340 This is useful when you want to have a custom theme for a nested form that's
341341different than the one of your main form. Just specify both your themes:
342342
343- .. code-block :: html+ twig
343+ .. code-block :: twig
344344
345345 {% form_theme form 'form/fields.html.twig' %}
346346
@@ -503,7 +503,7 @@ resource to use such a layout:
503503 If you only want to make the change in one template, add the following line to
504504your template file rather than adding the template as a resource:
505505
506- .. code-block :: html+ twig
506+ .. code-block :: twig
507507
508508 {% form_theme form 'form_table_layout.html.twig' %}
509509
0 commit comments