protected function _build_content()
 {
     parent::_build_content();
     if ($this->parent() instanceof Bootstrap_Form_Horizontal) {
         foreach ($this->_elements as &$element) {
             if (!$element instanceof Bootstrap_Form_Element_Control_Group) {
                 $element = Bootstrap_Form_Element_Control_Group::factory()->set('element', $element);
             }
         }
     }
 }
 protected function _build_content()
 {
     parent::_build_content();
     $this->_content = Form::checkbox($this->get('name'), $this->get('value'), $this->get('checked'), $this->attributes()->as_array());
 }
Пример #3
0
 protected function _build_content()
 {
     parent::_build_content();
     $this->_content = Form::select($this->get('name'), $this->get('options'), $this->get('selected'), $this->attributes()->as_array());
 }
Пример #4
0
 protected function _build_content()
 {
     parent::_build_content();
     $this->_content = View::factory($this->_template_folder . '/form/element/input/extend')->set('input', Form::input($this->get('name'), $this->get('value'), $this->attributes()->as_array()))->set('append', $this->_append)->set('prepend', $this->_prepend);
 }
 protected function _build_content()
 {
     parent::_build_content();
     $this->_content = Form::textarea($this->get('name'), $this->get('body'), $this->attributes()->as_array());
 }
Пример #6
0
 protected function _build_content()
 {
     parent::_build_content();
     $this->_content = Form::hidden($this->get('name'), $this->get('value'));
 }
Пример #7
0
 protected function _build_content()
 {
     parent::_build_content();
     $this->_content = Form::label($this->get('for'), $this->get('title'), $this->attributes()->as_array());
 }