Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8e2e988

Browse filesBrowse 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
Copy full SHA for 8e2e988

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎best_practices/forms.rst

Copy file name to clipboardExpand all lines: best_practices/forms.rst
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.