Hi,

I have a zend form:

[report_view]
; general form metainformation
report.method = "post"

; report the table parenthesis to the form
report.decorators.formElements.decorator = "FormElements"
report.decorators.htmlTag.decorator = "HtmlTag"
report.decorators.htmlTag.options.tag = "table"
report.decorators.form.decorator = "Form"

; report the following element decorators to the report form
report.elementDecorators.decorator= "ViewHelper"
report.elementDecorators.error.decorator = "Errors"

; report a data tag of td to each data field
report.elementDecorators.datatag.type.datatag = "HtmlTag"
report.elementDecorators.datatag.options.tag = "td"


; report a td tag to each element labelled as a label
report.elementDecorators.label.decorator = "label"
report.elementDecorators.formElements.decorator = "HtmlTag" 
report.elementDecorators.formElements.options.tag ="td"

; report the table <tr> tag to the end of a what it things is a row.
report.elementDecorators.rowtag.type.rowtag = "HtmlTag" 
report.elementDecorators.rowtag.options.tag = "tr"

; samplesize element
report.elements.samplesize.type = "Text"
report.elements.samplesize.options.label = "Sample Size"

; subscale element
report.elements.subscale.type = "hidden"
report.elements.subscale.options.label = "Subscale (standard score)"

; emotionalm element
report.elements.emotionalm.type = "Text"
report.elements.emotionalm.options.label = "Emotional (mean)"

; submit element
report.elements.submit.type = "submit"
report.elements.submit.options.label = "Submit"

What I want to do is have two boxes on a row (one to record the mean and one
to record the standard deviation). In my controller I can use :

                                $form           
->submit->removeDecorator('Label');


To remove the label from the element, so I assume I can remove the row tags
and data tags for individual elements, however I don't see how I am going to
convince it to put two text boxes on one line i.e. remove the closing tag on
one and then the opening tag on the next - I can only see a logical way of
telling it not to put the tag in at all. Could someone point me in the right
direction?  

I don't really want to build an "old" style form because id have to use
javascript to handle the validation. 

Many Thanks,

Andy
-- 
View this message in context: 
http://www.nabble.com/Zend-Form-Decorators-tp20244300p20244300.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to