Skip to content

Commit

Permalink
Encode page forms also
Browse files Browse the repository at this point in the history
E.g. if you want to submit a page form in order to act on submitted data
from computed fields or events without automatically creating a
document.

The enctype is needed to handle File fields.
  • Loading branch information
jean committed Aug 15, 2013
1 parent 8da35d5 commit e04ff3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -207,7 +207,9 @@
<h1 class="documentFirstHeading"
tal:content="here/Title">Title</h1>
<form id="plomino_form"
tal:attributes="name here/id">
tal:attributes="name here/id"
enctype="multipart/form-data"
method="POST">
<span tal:content="structure python:here.openBlankForm(request)" />
</form>
</tal:block_ispage>
Expand Down
5 changes: 4 additions & 1 deletion Products/CMFPlomino/skins/cmfplomino_templates/OpenForm.pt
Expand Up @@ -225,7 +225,10 @@
<h1 class="documentFirstHeading" tal:content="here/Title">Title</h1>
<div tal:replace="structure provider:plone.belowcontenttitle" />
<div tal:replace="structure provider:plone.abovecontentbody" />
<form id="plomino_form" tal:attributes="name here/id" method="POST">
<form id="plomino_form"
tal:attributes="name here/id"
enctype="multipart/form-data"
method="POST">
<span tal:content="structure python:here.openBlankForm(request)" />
</form>
<div tal:replace="structure provider:plone.belowcontentbody" />
Expand Down

0 comments on commit e04ff3f

Please sign in to comment.