silverstripe/sapphire — pull request #1029 by chillu (2012-12-13 15:17:26+00:00)
Title: Tooltips with inline defaults (#6898)

Replaces #986, lots of feedback in there.

In contrast to the previous attempt, I'm rendering $Description right into the form field template,
both in CMS and elsewhere. This replaces the existing "title" attribute.
I was a bit skeptical of a "kitchen sink" solution for this,
but in the end having description visible is a good default.

I've removed the extra "cms-help" class to trigger the behaviour,
since its now much clearer when it is required (presence of a ``.)
Tooltips can still be optionally enabled through CSS classes, see docs.
They fall back to the field container hover now,
in case no focusable element is found within the field.

Fixed FormField transformations to copy most of the form fields properties.
That's more of a general bugfix, FormField->setDescription() didn't work on many readonly/disabled fields. Added more test cases to the [frameworktest](github.com/silverstripe-labs/silverstripe-frameworktest) module and did manual regression testing on those.