File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ To render each field individually, use something like this:
79
79
80
80
.. code-block :: jinja
81
81
82
+ {# .first and .second may vary in your use - see the note below #}
82
83
{{ form_row(form.password.first) }}
83
84
{{ form_row(form.password.second) }}
84
85
@@ -89,8 +90,10 @@ To render each field individually, use something like this:
89
90
90
91
.. note ::
91
92
92
- The sub-field names are ``first `` and ``second `` by default, but can
93
- be controlled via the `first_name `_ and `second_name `_ options.
93
+ The names ``first `` and ``second `` are the default names for the two
94
+ sub-fields. However, these names can be controlled via the `first_name `_
95
+ and `second_name `_ options. If you've set these options, then use those
96
+ values instead of ``first `` and ``second `` when rendering.
94
97
95
98
Validation
96
99
~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments