Permalink
Browse files

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).
  • Loading branch information...
weaverryan committed Dec 7, 2014
2 parents 33ca697 + 21d69eb commit 8e2e988122facccf6e79cf02c25ebc4ecccf18b1
Showing with 2 additions and 2 deletions.
  1. +2 −2 best_practices/forms.rst
@@ -139,12 +139,12 @@ view layer:
.. code-block:: html+jinja
<form method="POST" {{ form_enctype(form) }}>
{{ form_start(form) }}
{{ form_widget(form) }}
<input type="submit" value="Create"
class="btn btn-default pull-right" />
</form>
{{ form_end(form) }}
Rendering the Form
------------------

0 comments on commit 8e2e988

Please sign in to comment.