in reply to Re^2: HTML::FormFu element attributes
in thread HTML::FormFu element attributes

Nice going. :) Don't forget you can add classes to your form pieces too and that's usually all you need; i.e., another wrapper tag (Block) is usually overkill. E.g., I add a date class to my date stuff so I can attach a jQuery date/calendar selector to it-

- type: DateTime name: publish add_attributes: class: date label: Publish Date auto_inflate: Yes

Update: Looking at your YAML again, I think you already knew this... :)

Replies are listed 'Best First'.
Re^4: HTML::FormFu element attributes
by neptuneray (Sexton) on Sep 22, 2009 at 19:07 UTC

    Yes, I did play with that. And I also discovered that you really CAN get at that enclosing Div tag (around every element). It is "container_attributes", and is used as:

    elements: - type: Text label: Client Name attributes: name: cname class: txtinput size: 55 maxlen: 80 value: %% client.name %% container_attributes: title: Name of Client class: txtContain

    This puts my own class, "txtContain", in front of the "text label" classes already inserted by FormFu.