Example #1
0
 /**
  * Initialisiert die Formularelement und Dekoratoren.
  */
 public function init()
 {
     parent::init();
     $this->setDecorators(array('FormElements', 'Form'));
     $this->addElement('hidden', self::ELEMENT_MODEL_ID, array('decorators' => array('ViewHelper', array(array('liWrapper' => 'HtmlTag'), array('tag' => 'li')))));
     $this->addElement('submit', self::ELEMENT_SAVE, array('decorators' => array('ViewHelper', array(array('liWrapper' => 'HtmlTag'), array('tag' => 'li', 'class' => 'save-element')))));
     $this->addElement('submit', self::ELEMENT_CANCEL, array('decorators' => array('ViewHelper', array(array('liWrapper' => 'HtmlTag'), array('tag' => 'li', 'class' => 'cancel-element')))));
     $this->addDisplayGroup(array(self::ELEMENT_MODEL_ID, self::ELEMENT_SAVE, self::ELEMENT_CANCEL), 'actions', array('order' => 1000, 'decorators' => array('FormElements', array(array('ulWrapper' => 'HtmlTag'), array('tag' => 'ul', 'class' => 'form-action')), array(array('divWrapper' => 'HtmlTag'), array('id' => 'form-action')))));
 }
 public function init()
 {
     parent::init();
     $this->setDisableLoadDefaultDecorators(true);
     $this->setDecorators(array('FormElements', array(array('fieldsWrapper' => 'HtmlTag'), array('tag' => 'div', 'class' => 'fields-wrapper')), 'FieldsetWithButtons', array(array('divWrapper' => 'HtmlTag'), array('tag' => 'div', 'class' => 'subform'))));
 }