I'm a big fan of Bootstrap-style forms, not necessarily the style per se but the markup and flexibility.
I did a quick little extension of it to see how feasible it is, and was pretty happy:
http://jsbin.com/ivodic/1
Still needs some work, but the basic form-field modifications are there.
I'd love to be able to use templates for this entirely, for each `label`, `input` and other elements but it is expected that _renderNode will return the node created and that's the label or the input. The Bootstrap input is wrapped in a <div> so that doesn't work so well.
If there were a core change to create the node, but then pull the various control elements from a selector, then the extensibility of the form module would be increased. Being able to specify a separate template from the element is a pretty quick change, and should be backwards compatible.
I wanted to run this by you, as I'd like to have that change put in so the extension is significantly smaller. If you're cool with it I can submit a pull request for this change.
Thanks!
I did a quick little extension of it to see how feasible it is, and was pretty happy:
http://jsbin.com/ivodic/1
Still needs some work, but the basic form-field modifications are there.
I'd love to be able to use templates for this entirely, for each `label`, `input` and other elements but it is expected that _renderNode will return the node created and that's the label or the input. The Bootstrap input is wrapped in a <div> so that doesn't work so well.
If there were a core change to create the node, but then pull the various control elements from a selector, then the extensibility of the form module would be increased. Being able to specify a separate template from the element is a pretty quick change, and should be backwards compatible.
I wanted to run this by you, as I'd like to have that change put in so the extension is significantly smaller. If you're cool with it I can submit a pull request for this change.
Thanks!