Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f771d15

Browse files
committed
Replace deprecated form_enctype by form_start
1 parent ecd68c5 commit f771d15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/form/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,11 @@ helper functions:
480480

481481
.. code-block:: html+jinja
482482

483-
<form action="#" method="post" {{ form_enctype(form) }}>
483+
{{ form_start(form) }}
484484
{{ form_widget(form) }}
485485

486486
<input type="submit" />
487-
</form>
487+
{{ form_end(form) }}
488488

489489
.. image:: /images/book/form-simple.png
490490
:align: center

0 commit comments

Comments
 (0)