Skip to content

Add form submit attributes (like formaction) to buttons #177

Description

@ralokt

See also: https://caniuse.com/#feat=form-submit-attributes

This would be awesome considering that form elements are not allowed to be nested. For constructing a formset with some buttons that do something with individual objects (move up/down, delete, ...) there are currently no good options.

  • Making the layout so that the forms aren't nested is a pain and shouldn't be necessary.
  • Detecting that we actually want to do something completely different than edit the entire formset on the server is hacky.
  • The best option by far of course is to just write the button element by hand instead of using the bootstrap_button tag. But it would still be nice not to have to do that.

If this is considered a worthwhile addition, I'm prepared to implement it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions