fuel/core — Issue #806: Allow <button type=submit"> within form generation
Author: Savageman
Created: 2012-02-01 09:57:29+00:00
State: open

When using the form generation with Fieldset::add(), it seems impossible to obtain a field.

type = submit generates
type = button generates

The latter doesn't submit the form when clicked, it needs aditionnal JavaScript or onclick to operate. I'm not even sure why it behaves this way. It's much more logical in my point of view to generate instead of type="button".

Since the "type" attribute is used to determine which tag to use when displaying the field, we cannot display a tag with a "submit" type.

I'm in favor of changing the default behaviour on this and generateing a when adding a "button" field.
Another solution is to add a new "submit_button" type? (like "reset")