Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to create a simple form whereby most input fields are stacked vertically (VBox), but have some field groups (like City-State-Zip) that I want horizontally (HBox)
In every case, I would like a label directly on-top of the Input box. I can do this easily in plain HTML by grouping the Input Elements, along with their Label, in Div (display: block) and having them float to the left.
But when I try it with FormFu, those darn extra Divs around every element screw up my alignment. Here is what I've tried:
--- attributes: id: form class: plain_form action: /login indicator: submit auto_fieldset: { id: clentform } elements: - type: Block tag: div attributes: class: formContainer elements: - type: Block tag: div attributes: class: formInput elements: - type: Text name: xref - type: Text name: since - type: Text name: kind - type: Fieldset - type: Text name: name - type: Text name: addr1 - type: Text name: addr2 - type: Fieldset - type: Text name: city - type: Text name: state
.etc
Maybe I am trying to do something that can't be done? It seems possible only with tons of Blocks around everything.
Any suggestions?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::FormFu element attributes
by Your Mother (Archbishop) on Sep 21, 2009 at 23:00 UTC | |
by Anonymous Monk on Sep 22, 2009 at 02:41 UTC | |
by Anonymous Monk on Sep 22, 2009 at 05:20 UTC | |
by neptuneray (Sexton) on Sep 22, 2009 at 17:15 UTC | |
by Your Mother (Archbishop) on Sep 22, 2009 at 17:30 UTC | |
by neptuneray (Sexton) on Sep 22, 2009 at 19:07 UTC | |
by neptuneray (Sexton) on Sep 22, 2009 at 01:48 UTC | |
|
Re: HTML::FormFu element attributes
by neptuneray (Sexton) on Sep 21, 2009 at 21:03 UTC |