Hi,

First post here, so hope I've got the right forum.

I've got a form decorated with TabContainer and two added subforms. They
work great.
I would like to add buttons to the parent form and have them below the
tabbed sub-forms, and I'm failing to find a way to do this.
The submit button is not rendered.

Firebug html is showing the submit button inside the TabContainer and inside
the dijitTabPaneWrapper which confuses me (!)
Firebug inspector shows the button is below the tabcontainers, but is not
visible.

My gut tells me this is a decorator issue... but, if I change the order of
the decorators to put FormElements after (before in the code) the
TabContainer, the elements appear in the form after the tabContainer rather
than in it. This makes sense to me, but how, then, do I get it to render
only the button elements to the parent form and the FormElements to the
tabContainer?

I hope it's clear what I'm trying to acheive, and a code snippet from the
form is below.
Has anyone done this, is it blindingly obvious and I just can't see it?

cheers,
Rod

Form init():
    ...
       $this->setDecorators(array(
             'FormElements',
             array('TabContainer',
                array(
                   'id' => 'tabContainer',
                   'style' => 'width: 800px; height: 600px;',
                   'dijitParams' => array('tabPosition' => 'top'),
                )),
             'DijitForm',
          ));

    // Create all the subforms  !!! subforms created and subform elements
added !!!
    //
            $A_Details = $this->setupATab();
            $B_Details = $this->setupBTab();

    // Add the subforms to the parent
    //
            $this->addSubForm($A_Details, 'adetailstab');
            $this->addSubForm($A_Details, 'bdetailstab');

    // Add submit button
    //
            $this->addElement(
               'Submit',
               'submit',
             array(
                'label' => 'Submit Details',
            ));
    ...


--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/submit-button-outside-tabcontainer-tp3684062p3684062.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to