caolan/forms — pull request #145 by tolleiv (2014-10-22 16:28:23+00:00)
Title: Optgroup feature for select and multipleSelect Widgets

Hi,

thanks for this great form framework. I missed an option to have "optgroups" within the select widgets and therefore added an option to have them.

For now I've kept the functions to render the groups and options separate per widget, but that could be refactored later on to have a single rendering function for both.

I've also added basic tests.

Would be great to get your feedback.
Cheers,
Tolleiv