protected function _build_content() { parent::_build_content(); foreach ($this->_elements as &$element) { if (!$element instanceof Bootstrap_Form_Element_Control_Group and !$element instanceof Bootstrap_Form_Element_Fieldset) { $element = Bootstrap_Form_Element_Control_Group::factory()->set('element', $element); } } }
public function default_attributes() { $array = parent::default_attributes(); $array['class'] = Bootstrap_Form::INLINE; return $array; }
protected function _build_content() { parent::_build_content(); $input = Bootstrap_Form_Element_Input::factory(array('name' => 'query', 'value' => $this->get('query')))->attributes('class', Bootstrap_Form::SEARCH_QUERY)->append(Bootstrap_Form_Element_Button::factory(array('name' => 'search_button', 'title' => $this->get('button_title', __('Search'))))->icon('search')); $this->add($input); }