public function __construct() { // we want to ignore the name passed parent::__construct('tag'); $this->add(new Element\Hidden('target_type_object')); $this->add(new Element\Hidden('target_id_row')); $this->setAttribute('method', 'post'); $nid_lov_tag = new \Tee\Form\Element\TreeRadio('nid_lov_tag'); $nid_lov_tag->setLabel('Tag')->setAttributes(array('class' => 'white')); $this->add($nid_lov_tag); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'smallwhite')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn-success', 'style' => 'margin-right:100px;', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn-success')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('poxn'); $this->setAttribute('method', 'post'); $this->add(new Element\Hidden('id_organization')); $name_poxn = new Element\Text('name_poxn'); $name_poxn->setLabel('Position (Job Title)')->setAttributes(array('class' => 'largewhite')); $this->add($name_poxn); $nid_lov_poxntype = new \Tee\Form\Element\TreeRadio('nid_lov_poxntype'); $nid_lov_poxntype->setLabel('Position Type')->setAttributes(array('class' => 'medwhite')); $this->add($nid_lov_poxntype); $bool_top_poxn = new Element\Radio('bool_top_poxn'); $bool_top_poxn->setLabel('Is Top Position?')->setLabelAttributes(array('style' => 'float:left;width:80px;margin-right:10px'))->setValueOptions(array('1' => 'Yes', '0' => 'No'))->setAttributes(array('class' => 'medwhite')); $this->add($bool_top_poxn); $bool_active = new Element\Radio('bool_active'); $bool_active->setLabel('Active')->setLabelAttributes(array('style' => 'float:left;width:80px;margin-right:10px'))->setValueOptions(array('1' => 'Yes', '0' => 'No'))->setAttributes(array('class' => 'medwhite')); $this->add($bool_active); $nid_timezone = new Element\Select('nid_timezone'); $nid_timezone->setLabel('Time Zone')->setAttributes(array('class' => 'white'))->setValueOptions(array('0' => 'Select a timezone')); $this->add($nid_timezone); $id_locale = new Element\Select('nid_locale'); $id_locale->setLabel('Locale')->setAttributes(array('class' => 'white'))->setValueOptions(array('0' => 'Select a locale')); $this->add($id_locale); $nid_language = new Element\Select('nid_language'); $nid_language->setLabel('Language')->setAttributes(array('class' => 'white'))->setValueOptions(array('0' => 'Select a language')); $this->add($nid_language); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'smallwhite')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn-success', 'style' => 'margin-right:100px;', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn-success')); $this->add($submit); }