While I'm in that area, does anybody have any features requests or
suggestions for rendering improvements? Or other improvements, for that
matter.
Gerda
> I have a new job which uses a lot of TT templates, so I'm updating the existing FormHandler templates and related rendering.
>
> While I'm in that area, does anybody have any features requests or suggestions for rendering improvements? Or other improvements, for that matter.
I'd like to have HTML5 placeholders which are localized :-). Is this something you've meant?
Matthias
You can add a 'placeholder' attribute with: html_attr => { placeholder
=> '....' }. Getting it localized is a bit trickier. How are you
rendering? If you're using the widgets, you could to do something with
_add_html_attributes (in
HTML::FormHandler::Widget::Field::Role::HTMLAttributes). A 'before'
method modifier in a role added to the field class, maybe, which sets
the 'placeholder' attribute and localized it.
Gerda