robfletcher/grails-fields — pull request #64 by cblock (2012-03-22 10:02:39+00:00)
Title: Add support for specific help and unit labels

Hi!

First of all: great plugin!! Thanks a lot! Two little things I was missing are default unit and help labels for form fields. That's why I added that functionality.

More specific, the attached changes add support for a "helpLabel" and "unitLabel" template parameter. These are resolved the same way as the already existing "label" variable.

By default both labels are completely omitted from the default rendering if they are undefined. But if defined, the unitLabel is rendered as span after the input widget while the helpLabel is rendered as div below the input widget.

Thanks for considering this patch for addition.

Cheers,
Carsten