Page 1 of 1

New/Edit Form layout change for Textarea

PostPosted: Thu Feb 10, 2011 7:51 am
by neotrode
Hello.

Is there a way to edit the Quickform's Textarea struture so that it matches the other fields as far as visual layout style?
To start, I decided to create a clone of the plone.css and a custom template to call the custom css. In the css, I changed the width of the textarea to 50%. Now that I have done that, I would also like to change the layout of the textarea portion of the form. It appears that all fields have a label addressed in their own <td> space followed by the form next to it in another <td> space. However, the textarea form uses only one <td> with a colspan expanded to "2". Leaving the label above the form's textarea window. I would like to change this so that the layout is consistant through the entire form. I am sure I can dig my teeth into the code and change this but I was wondering if you have already set a way to make these changes without breaking the core source code.

I look forward to your response. They're always "on the nose".

Ciao,
Frank

Re: New/Edit Form layout change for Textarea

PostPosted: Thu Feb 10, 2011 10:22 am
by shannah
set
Code: Select all
display=inline


for the field in question in your fields.ini.

Alternatively you could change your other fields to match the textarea strategy (label/widget in separate rows) by setting:
Code: Select all
display=block

for those fields.

Re: New/Edit Form layout change for Textarea

PostPosted: Mon Feb 14, 2011 1:22 pm
by neotrode
Perfect. Thanks!

-Frank