gathering / wannabe

Event-system for TG - wannabe.gathering.org
GNU General Public License v3.0
12 stars 7 forks source link

Bootstrap validation styles on (profile) forms #38

Closed niccofyren closed 4 years ago

niccofyren commented 4 years ago

While looking at the empty nick issue (and the earlier password related tweaks) I noticed there where quite a few fields which did not present user feedback in a clear manner. Most likely many forms are still configured for whatever "old" CSS styling was used before bootstrap.

This PR adds a small helper where we can add some default FormHelper configuration to make it work with Bootstrap field validations by default. Didn't find a good way to "include" it globally, in CakePHP2 so for now it's manually included in relevant forms. As a bonus, this also lets us clean up a lot of boilerplate from form/input related templates.

Changes: