Exemplo n.º 1
0
 public function init()
 {
     if (!$this->_containerType) {
         $this->_containerType = Application_Model_Models_Container::TYPE_PREPOP;
     }
     $this->addElement('text', 'content', array('id' => 'content', 'value' => $this->_content, 'filters' => array('StringTrim')));
     parent::init();
 }
Exemplo n.º 2
0
 public function init()
 {
     if (!$this->_containerType) {
         $this->_containerType = Application_Model_Models_Container::TYPE_REGULARCONTENT;
     }
     $this->addElement('textarea', 'content', array('id' => 'content', 'cols' => '85', 'rows' => '30', 'class' => 'tinymce', 'value' => $this->_content, 'filters' => array('StringTrim')));
     parent::init();
     $this->removeDecorator('DtDdWrapper');
     $this->removeDecorator('DlWrapper');
 }
Exemplo n.º 3
0
 public function init()
 {
     $this->addElement('text', 'content', array('id' => 'content', 'value' => $this->_content, 'filters' => array('StringTrim'), 'class' => 'header-content'));
     $this->addElement('button', 'submit', array('type' => 'submit', 'id' => 'btn-submit', 'label' => 'Save content', 'class' => 'formsubmit mt15px', 'ignore' => true));
     parent::init();
     if (!$this->_containerType) {
         $this->_containerType = Application_Model_Models_Container::TYPE_REGULARHEADER;
     }
     $classes = $this->getAttrib('class');
     $classes .= ' _fajax _reload';
     $this->setAttrib('class', $classes);
 }
Exemplo n.º 4
0
 public function init()
 {
     if (!$this->_containerType) {
         $this->_containerType = Application_Model_Models_Container::TYPE_REGULARCONTENT;
     }
     $this->addElement('textarea', 'content', array('id' => 'content', 'cols' => '85', 'rows' => '30', 'class' => 'code-content', 'style' => 'height: 220px; font-family: Arial monospace; width: 458px;', 'value' => $this->_content, 'filters' => array('StringTrim')));
     $this->addAttribs(array('class' => '_fajax _reload'));
     parent::init();
     $this->addElement('submit', 'submit', array('id' => 'btn-submit', 'label' => 'Save content', 'class' => 'formsubmit', 'style' => 'margin: 10px 0px', 'ignore' => true));
     $this->removeDecorator('DtDdWrapper');
     $this->removeDecorator('DlWrapper');
     $this->getElement('submit')->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'div'))));
 }