Esempio n. 1
0
 public function __construct()
 {
     // we want to ignore the name passed
     parent::__construct('resp');
     $this->setAttribute('method', 'post');
     $name_resp = new Element\Text('name_resp');
     $name_resp->setLabel('Responsibility')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($name_resp);
     $nid_lov_resptype = new Element\Select('nid_lov_resptype');
     $nid_lov_resptype->setLabel('Type')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a type'));
     $this->add($nid_lov_resptype);
     $nid_timezone = new Element\Select('nid_timezone');
     $nid_timezone->setLabel('Time Zone')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a timezone'));
     $this->add($nid_timezone);
     $id_locale = new Element\Select('nid_locale');
     $id_locale->setLabel('Locale')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a locale'));
     $this->add($id_locale);
     $nid_language = new Element\Select('nid_language');
     $nid_language->setLabel('Language')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a language'));
     $this->add($nid_language);
     $comment = new Element\Textarea('comment');
     $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($comment);
     $back = new Element\Button('back');
     $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => ''));
     $this->add($back);
     $submit = new Element\Submit('submit');
     $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm'));
     $this->add($submit);
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct('resource');
     $this->setAttribute('method', 'post');
     $name_resource = new Element\Text('name_resource');
     $name_resource->setLabel('Resource')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($name_resource);
     $id_owner = new Element\Text('id_owner');
     $id_owner->setLabel('Owner')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($id_owner);
     $description = new Element\Textarea('description');
     $description->setLabel('Description')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($description);
     $nid_lov_resourcetype = new Element\Select('nid_lov_resourcetype');
     $nid_lov_resourcetype->setLabel('Type')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a type'));
     $this->add($nid_lov_resourcetype);
     $nid_timezone = new Element\Select('nid_timezone');
     $nid_timezone->setLabel('Time Zone')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a timezone'));
     $this->add($nid_timezone);
     $id_locale = new Element\Select('nid_locale');
     $id_locale->setLabel('Locale')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a locale'));
     $this->add($id_locale);
     $nid_language = new Element\Select('nid_language');
     $nid_language->setLabel('Language')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a language'));
     $this->add($nid_language);
     $num_disp_tab = new Element\Text('num_disp_tab');
     $num_disp_tab->setLabel('Number Of Display Tab')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($num_disp_tab);
     $bool_active = new Element\Radio('bool_active');
     $bool_active->setLabel('Is Active')->setAttributes(array('class' => 'radio-inline'))->setLabelAttributes(array('style' => 'float:left;width:50px;margin-right:10px'))->setValueOptions(array('1' => 'Yes', '0' => 'No'));
     $this->add($bool_active);
     $bool_root = new Element\Radio('bool_root');
     $bool_root->setLabel('Is Root')->setAttributes(array('class' => 'radio-inline'))->setLabelAttributes(array('style' => 'float:left;width:50px;margin-right:10px'))->setValueOptions(array('1' => 'Yes', '0' => 'No'));
     $this->add($bool_root);
     $comment = new Element\Textarea('comment');
     $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($comment);
     $back = new Element\Button('back');
     $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => ''));
     $this->add($back);
     $submit = new Element\Submit('submit');
     $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm'));
     $this->add($submit);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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);
 }