Skip to content

Redundantly Wrapped startFormTags() #32

@geirman

Description

@geirman

When scaffolding out a new object, I noticed the following...

view/{controller}/new and view/{controller}/edit files are created with a similar structure...

#startFormTag()#
	#includePartial("form")#
	#submitTag()#
#endFormTag()#

Inside the _form.cfm partial is something like this...

#startFormTag()#
	<!--- form helper functions & markup --->
	#submitTag()#
#endFormTag()#

Because of this, the result is two forms, one nested inside the other, and two submit buttons.

I'd like to submit a PR on this, but it's not immediately obvious where I'd make this change. My first thought was to edit the /templates/crud/_form.txt file, but it appears that the CLI does all the magic within there. So, where's that magic happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions