symfony2admingenerator/AdmingeneratorGeneratorBundle — pull request #672 by andersaloof (2013-10-15 11:05:30+00:00)
Title: Adds a badge to tabs with :invalid form fields

When submitting a form with html5 validation on in Chrome, there is a javascript error in the console if the form field with an error is in another tab than the currently visible tab, giving no indication to the user (except the error in the javascript console).

This commit adds a click handler to the submit button, adding badges to tabs with form fields containing errors, making it easier for the user to correct their errors to properly submit the form.