Skip to content

Commit

Permalink
Merge pull request #50 from bwaidelich/task-form-editmode
Browse files Browse the repository at this point in the history
TASK: FormEditMode Form Element preset
  • Loading branch information
Bastian Waidelich committed Jul 31, 2017
2 parents 502878f + d71e8ac commit f31529f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ Neos:
rendererClassName: Neos\Form\Core\Renderer\FluidFormRenderer
renderingOptions:
renderableNameInTemplate: form
'Neos.Form:FormEditMode':
superTypes:
'Neos.Form:Form': true
'Neos.Form:RemovableMixin': { }
'Neos.Form:ReadOnlyFormElement':
superTypes:
Expand Down
6 changes: 6 additions & 0 deletions Resources/Private/Form/FormEditMode.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{namespace form=Neos\Form\ViewHelpers}
<form:form action="index" object="{form}" method="post" id="{form.identifier}" section="{form.identifier}" enctype="multipart/form-data">
<f:for each="{form.pages}" as="page">
<form:renderRenderable renderable="{page}" />
</f:for>
</form:form>

0 comments on commit f31529f

Please sign in to comment.