@@ -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) }}
@@ -448,7 +448,7 @@ corresponding errors printed out with the form.
448
448
449
449
.. configuration-block ::
450
450
451
- .. code-block :: html+jinja
451
+ .. code-block :: html+twig
452
452
453
453
{# app/Resources/views/default/new.html.twig #}
454
454
{{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}
@@ -792,7 +792,7 @@ of code. Of course, you'll usually need much more flexibility when rendering:
792
792
793
793
.. configuration-block ::
794
794
795
- .. code-block :: html+jinja
795
+ .. code-block :: html+twig
796
796
797
797
{# app/Resources/views/default/new.html.twig #}
798
798
{{ form_start(form) }}
@@ -834,7 +834,7 @@ output can be customized on many different levels.
834
834
835
835
.. configuration-block ::
836
836
837
- .. code-block :: jinja
837
+ .. code-block :: twig
838
838
839
839
{{ form.vars.value.task }}
840
840
@@ -856,7 +856,7 @@ used the ``form_row`` helper:
856
856
857
857
.. configuration-block ::
858
858
859
- .. code-block :: html+jinja
859
+ .. code-block :: html+twig
860
860
861
861
{{ form_start(form) }}
862
862
{{ form_errors(form) }}
@@ -908,7 +908,7 @@ specify it:
908
908
909
909
.. configuration-block ::
910
910
911
- .. code-block :: html+jinja
911
+ .. code-block :: html+twig
912
912
913
913
{{ form_label(form.task, 'Task Description') }}
914
914
@@ -924,7 +924,7 @@ field:
924
924
925
925
.. configuration-block ::
926
926
927
- .. code-block :: html+jinja
927
+ .. code-block :: html+twig
928
928
929
929
{{ form_widget(form.task, {'attr': {'class': 'task_field'}}) }}
930
930
@@ -940,7 +940,7 @@ to get the ``id``:
940
940
941
941
.. configuration-block ::
942
942
943
- .. code-block :: html+jinja
943
+ .. code-block :: html+twig
944
944
945
945
{{ form.task.vars.id }}
946
946
@@ -953,7 +953,7 @@ the ``full_name`` value:
953
953
954
954
.. configuration-block ::
955
955
956
- .. code-block :: html+jinja
956
+ .. code-block :: html+twig
957
957
958
958
{{ form.task.vars.full_name }}
959
959
@@ -1010,7 +1010,7 @@ to the ``form()`` or the ``form_start()`` helper:
1010
1010
1011
1011
.. configuration-block ::
1012
1012
1013
- .. code-block :: html+jinja
1013
+ .. code-block :: html+twig
1014
1014
1015
1015
{# app/Resources/views/default/new.html.twig #}
1016
1016
{{ form_start(form, {'action': path('target_route'), 'method': 'GET'}) }}
@@ -1384,7 +1384,7 @@ Render the ``Category`` fields in the same way as the original ``Task`` fields:
1384
1384
1385
1385
.. configuration-block ::
1386
1386
1387
- .. code-block :: html+jinja
1387
+ .. code-block :: html+twig
1388
1388
1389
1389
{# ... #}
1390
1390
@@ -1453,7 +1453,7 @@ do this, create a new template file that will store the new markup:
1453
1453
1454
1454
.. configuration-block ::
1455
1455
1456
- .. code-block :: html+jinja
1456
+ .. code-block :: html+twig
1457
1457
1458
1458
{# app/Resources/views/form/fields.html.twig #}
1459
1459
{% block form_row %}
@@ -1482,7 +1482,7 @@ renders the form:
1482
1482
1483
1483
.. configuration-block ::
1484
1484
1485
- .. code-block :: html+jinja
1485
+ .. code-block :: html+twig
1486
1486
1487
1487
{# app/Resources/views/default/new.html.twig #}
1488
1488
{% form_theme form 'form/fields.html.twig' %}
@@ -1671,7 +1671,7 @@ to define form output.
1671
1671
In Twig, you can also customize a form block right inside the template
1672
1672
where that customization is needed:
1673
1673
1674
- .. code-block :: html+jinja
1674
+ .. code-block :: html+twig
1675
1675
1676
1676
{% extends 'base.html.twig' %}
1677
1677
0 commit comments