Skip to content

Commit

Permalink
Replace form_enctype(form) with form_start(form).
Browse files Browse the repository at this point in the history
Since form_enctype(form) is deprecated since 2.3 form_start(form) should be used.
  • Loading branch information
xelaris committed Dec 7, 2014
1 parent db35c42 commit 21d69eb
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 @@ -145,12 +145,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 21d69eb

Please sign in to comment.