Skip to content

Commit

Permalink
bug #4603 Replace form_enctype(form) with form_start(form). (xelaris)
Browse files Browse the repository at this point in the history
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 8e2e988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions best_practices/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------------
Expand Down

0 comments on commit 8e2e988

Please sign in to comment.