Skip to content

Commit 8e2e988

Browse files
committed
bug #4603 Replace form_enctype(form) with form_start(form). (xelaris)
This PR was merged into the 2.3 branch. Discussion ---------- Replace form_enctype(form) with form_start(form). | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | >=2.3 | Fixed tickets | Since form_enctype(form) is deprecated since 2.3 form_start(form) should be used. Commits ------- 21d69eb Replace form_enctype(form) with form_start(form).
2 parents 33ca697 + 21d69eb commit 8e2e988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

best_practices/forms.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ view layer:
139139

140140
.. code-block:: html+jinja
141141

142-
<form method="POST" {{ form_enctype(form) }}>
142+
{{ form_start(form) }}
143143
{{ form_widget(form) }}
144144

145145
<input type="submit" value="Create"
146146
class="btn btn-default pull-right" />
147-
</form>
147+
{{ form_end(form) }}
148148

149149
Rendering the Form
150150
------------------

0 commit comments

Comments
 (0)