[Solar-talk] Is form 'descr' not implemented?

Rodrigo Moraes rodrigo.moraes at gmail.com
Wed Feb 21 16:55:30 PST 2007


On 2/1/07, Paul M Jones wrote:
> > Now a question: Solar_View_Helper_Form elements have a key 'descr',
> > but the values are not added to any output generated by the helper. Is
> > it a future feature or how should it be used?
>
> Future feature.  The idea is that it provides text describing what
> the element is for, maybe in a "help" popup.
>
> As you note in a later email, one problem is figuring out what the
> markup should be.  I was thinking something more like a "div" so you
> can add an id or class, and possibly include markup in the
> description itself, so that JavaScript can hide and display it.

I was thinking about this and had a idea for a extended form helper:
one that builds the form based on templates instead of generating the
markup. I remeber I saw a lot of time ago PEAR::Template_Flexy
building forms with a single template with definitions for elements,
groups, labels, descriptions, and then you could more or less easily
change the markup depending on your needs.

rodrigo


More information about the solar-talk mailing list