コード例 #1
0
 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);
             }
         }
     }
 }
コード例 #2
0
 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);
 }
コード例 #5
0
 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());
 }