@@ -142,7 +142,7 @@ helper functions:
142
142
143
143
.. configuration-block ::
144
144
145
- .. code-block :: html+jinja
145
+ .. code-block :: html+twig
146
146
147
147
{# app/Resources/views/default/new.html.twig #}
148
148
{{ form_start(form) }}
@@ -450,7 +450,7 @@ corresponding errors printed out with the form.
450
450
451
451
.. configuration-block ::
452
452
453
- .. code-block :: html+jinja
453
+ .. code-block :: html+twig
454
454
455
455
{# app/Resources/views/default/new.html.twig #}
456
456
{{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}
@@ -798,7 +798,7 @@ of code. Of course, you'll usually need much more flexibility when rendering:
798
798
799
799
.. configuration-block ::
800
800
801
- .. code-block :: html+jinja
801
+ .. code-block :: html+twig
802
802
803
803
{# app/Resources/views/default/new.html.twig #}
804
804
{{ form_start(form) }}
@@ -840,7 +840,7 @@ output can be customized on many different levels.
840
840
841
841
.. configuration-block ::
842
842
843
- .. code-block :: jinja
843
+ .. code-block :: twig
844
844
845
845
{{ form.vars.value.task }}
846
846
@@ -862,7 +862,7 @@ used the ``form_row`` helper:
862
862
863
863
.. configuration-block ::
864
864
865
- .. code-block :: html+jinja
865
+ .. code-block :: html+twig
866
866
867
867
{{ form_start(form) }}
868
868
{{ form_errors(form) }}
@@ -914,7 +914,7 @@ specify it:
914
914
915
915
.. configuration-block ::
916
916
917
- .. code-block :: html+jinja
917
+ .. code-block :: html+twig
918
918
919
919
{{ form_label(form.task, 'Task Description') }}
920
920
@@ -930,7 +930,7 @@ field:
930
930
931
931
.. configuration-block ::
932
932
933
- .. code-block :: html+jinja
933
+ .. code-block :: html+twig
934
934
935
935
{{ form_widget(form.task, {'attr': {'class': 'task_field'}}) }}
936
936
@@ -946,7 +946,7 @@ to get the ``id``:
946
946
947
947
.. configuration-block ::
948
948
949
- .. code-block :: html+jinja
949
+ .. code-block :: html+twig
950
950
951
951
{{ form.task.vars.id }}
952
952
@@ -959,7 +959,7 @@ the ``full_name`` value:
959
959
960
960
.. configuration-block ::
961
961
962
- .. code-block :: html+jinja
962
+ .. code-block :: html+twig
963
963
964
964
{{ form.task.vars.full_name }}
965
965
@@ -1016,7 +1016,7 @@ to the ``form()`` or the ``form_start()`` helper:
1016
1016
1017
1017
.. configuration-block ::
1018
1018
1019
- .. code-block :: html+jinja
1019
+ .. code-block :: html+twig
1020
1020
1021
1021
{# app/Resources/views/default/new.html.twig #}
1022
1022
{{ form_start(form, {'action': path('target_route'), 'method': 'GET'}) }}
@@ -1390,7 +1390,7 @@ Render the ``Category`` fields in the same way as the original ``Task`` fields:
1390
1390
1391
1391
.. configuration-block ::
1392
1392
1393
- .. code-block :: html+jinja
1393
+ .. code-block :: html+twig
1394
1394
1395
1395
{# ... #}
1396
1396
@@ -1459,7 +1459,7 @@ do this, create a new template file that will store the new markup:
1459
1459
1460
1460
.. configuration-block ::
1461
1461
1462
- .. code-block :: html+jinja
1462
+ .. code-block :: html+twig
1463
1463
1464
1464
{# app/Resources/views/form/fields.html.twig #}
1465
1465
{% block form_row %}
@@ -1488,7 +1488,7 @@ renders the form:
1488
1488
1489
1489
.. configuration-block ::
1490
1490
1491
- .. code-block :: html+jinja
1491
+ .. code-block :: html+twig
1492
1492
1493
1493
{# app/Resources/views/default/new.html.twig #}
1494
1494
{% form_theme form 'form/fields.html.twig' %}
@@ -1672,7 +1672,7 @@ to define form output.
1672
1672
In Twig, you can also customize a form block right inside the template
1673
1673
where that customization is needed:
1674
1674
1675
- .. code-block :: html+jinja
1675
+ .. code-block :: html+twig
1676
1676
1677
1677
{% extends 'base.html.twig' %}
1678
1678
0 commit comments