getElement()->getSubForms(); $itemSubForm = reset($itemSubForm); if ($itemSubForm) { $colspan = (int) count($itemSubForm->getElementsAndSubFormsOrdered()); $name = $this->getElement()->getName() . '[btnAddItem]'; $value = 'Add New Committee'; $attribs = array( 'type' => 'button', 'class' => 'btn btn-primary btn-small btn-add', 'content' => $value ); $button = $itemSubForm->getView()->formButton($name, $value, $attribs); $tfoot = '