Ejemplo n.º 1
0
 public function init()
 {
     $this->setAttrib('class', 'form-horizontal');
     $login = new Zend_Form_Element_Text('login');
     $login->setRequired()->addValidator('StringLength', false, array('max' => 32))->setLabel('Nom d\'utilisateur');
     $db = Zend_Db_Table::getDefaultAdapter();
     $validator = new Zend_Validate_Db_NoRecordExists(array('adapter' => $db, 'schema' => 'twitter', 'table' => 'membre', 'field' => 'login'));
     $validator->setMessage("Le login '%value%' est déjà utilisé");
     $login->addValidator($validator);
     $pass = new Zend_Form_Element_Password('pass');
     $pass->setLabel('Mot de passe')->setRequired();
     $passConfirm = new Zend_Form_Element_Password('confirm');
     $passConfirm->setLabel('Confirmer le mot de passe');
     $validator = new Zend_Validate_Identical('pass');
     $validator->setMessage('La confirmation ne correspond pas au mot de passe');
     $passConfirm->addValidator($validator);
     //$passConfirm->addValidator('Identical', false, array('token'));
     $hash = new Zend_Form_Element_Hash('hash');
     $submit = new Zend_Form_Element_Submit('Inscription');
     $cancel = new Zend_Form_Element_Button('Annuler');
     $this->addElements(array($login, $pass, $passConfirm, $hash, $submit, $cancel));
     // add display group
     $this->addDisplayGroup(array('login', 'pass', 'confirm', 'Inscription', 'Annuler'), 'users');
     $this->getDisplayGroup('users')->setLegend('S\'inscrire');
     // set decorators
     EasyBib_Form_Decorator::setFormDecorator($this, EasyBib_Form_Decorator::BOOTSTRAP, 'Inscription', 'Annuler');
 }
Ejemplo n.º 2
0
 public function init()
 {
     $this->setMethod('post');
     $subject = new \Zend_Form_Element_Text('subject');
     $message = new \Zend_Form_Element_Textarea('message');
     $priorityId = new \Zend_Form_Element_Select('priorityId');
     $categories = new \Zend_Form_Element_Select('categories', array('multiple' => true));
     $file = new \Zend_Form_Element_File('file');
     $submit = new \Zend_Form_Element_Button('submit');
     $cancel = new \Zend_Form_Element_Button('cancel');
     $subject->setLabel('Konu:')->setAttrib('placeholder', 'Konu giriniz!')->setAttrib('class', 'form-control')->setRequired(true)->setDescription('')->setErrorMessages(array('required' => 'Bu alan zorunludur!'));
     $message->setLabel('Mesaj:')->setAttrib('placeholder', 'Mesaj giriniz!')->setAttrib('class', 'form-control')->setAttrib('rows', '5')->setRequired(true)->setDescription('')->setErrorMessages(array('required' => 'Bu alan zorunludur!'));
     $priorityId->setLabel('Öncelik:')->setAttrib('placeholder', 'Öncelik seçiniz!')->setAttrib('class', 'form-control')->setRequired(true)->setDescription('')->setErrorMessages(array('required' => 'Bu alan zorunludur!'));
     $categories->setLabel('Kategori:')->setAttrib('placeholder', 'Kategori seçiniz!')->setAttrib('class', 'form-control')->setRequired(true)->setDescription('')->setValidators(array('StringLength'))->setErrorMessages(array('StringLength' => 'En az bir adet seçmelisiniz!', 'reuqired' => 'Bu alan zorunludur'));
     $file->setLabel('File')->setAttrib('enctype', 'multipart/form-data')->setAttrib('accept', 'image/*')->setAttrib('id', 'upload')->setDestination('/var/www/destek-sistemi/web/upload')->addValidator('Count', false, 1)->addValidator('Size', false, 8388608)->addValidator('Extension', false, 'png,jpg');
     $submit->setLabel('Kaydet')->setAttrib('class', 'btn btn-lg btn-primary btn-block')->setAttrib('type', 'submit');
     $cancel->setLabel('İptal')->setAttrib('class', 'btn btn-md btn-default btn-block')->setAttrib('type', 'reset');
     //$hash->setIgnore(true);
     // add elements
     $this->addElements(array($subject, $message, $priorityId, $categories, $file, $submit, $cancel));
     // add display group
     $this->addDisplayGroup(array('subject', 'message', 'priorityId', 'categories', 'submit', 'cancel'), 'ticketForm');
     // set decorators
     \EasyBib_Form_Decorator::setFormDecorator($this, \EasyBib_Form_Decorator::BOOTSTRAP_MINIMAL, 'submit', 'cancel');
 }
 public function init()
 {
     // create elements
     $userId = new Zend_Form_Element_Hidden('id');
     $mail = new Zend_Form_Element_Text('email');
     $name = new Zend_Form_Element_Text('name');
     $radio = new Zend_Form_Element_Radio('radio');
     $file = new Zend_Form_Element_File('file');
     $multi = new Zend_Form_Element_MultiCheckbox('multi');
     $captcha = new Zend_Form_Element_Captcha('captcha', array('captcha' => 'Figlet'));
     $submit = new Zend_Form_Element_Button('submit');
     $cancel = new Zend_Form_Element_Button('cancel');
     // config elements
     $mail->setLabel('Mail:')->setAttrib('placeholder', 'data please!')->setRequired(true)->setDescription('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis fringilla purus eget ante ornare vitae iaculis est varius.')->addValidator('emailAddress');
     $name->setLabel('Name:')->setRequired(true);
     $radio->setLabel('Radio:')->setMultiOptions(array('1' => PHP_EOL . 'test1', '2' => PHP_EOL . 'test2'))->setRequired(true);
     $file->setLabel('File:')->setRequired(true)->setDescription('Check file upload');
     $multiOptions = array('view' => PHP_EOL . 'view', 'edit' => PHP_EOL . 'edit', 'comment' => PHP_EOL . 'comment');
     $multi->setLabel('Multi:')->addValidator('Alpha')->setMultiOptions($multiOptions)->setRequired(true);
     $captcha->setLabel('Captcha:')->setRequired(true)->setDescription("This is a test");
     $submit->setLabel('Save')->setAttrib('type', 'submit');
     $cancel->setLabel('Cancel');
     // add elements
     $this->addElements(array($userId, $mail, $name, $radio, $file, $captcha, $multi, $submit, $cancel));
     // add display group
     $this->addDisplayGroup(array('email', 'name', 'radio', 'multi', 'file', 'captcha', 'submit', 'cancel'), 'users');
     // set decorators
     EasyBib_Form_Decorator::setFormDecorator($this, EasyBib_Form_Decorator::BOOTSTRAP_MINIMAL, 'submit', 'cancel');
 }
Ejemplo n.º 4
0
 /** Initialise objects and keys
  * @access public
  */
 public function init()
 {
     $this->_config = Zend_Registry::get('config');
     $this->_privateKey = $this->_config->webservice->recaptcha->privatekey;
     $this->_pubKey = $this->_config->webservice->recaptcha->pubkey;
     $this->_salt = $this->_config->form->salt;
     EasyBib_Form_Decorator::setFormDecorator($this, EasyBib_Form_Decorator::BOOTSTRAP, 'submit', 'cancel');
 }
Ejemplo n.º 5
0
 public function init()
 {
     $this->setMethod('post');
     $this->setAttrib('class', 'form-horizontal');
     VAR_fields;
     // add display group
     $this->addDisplayGroup(VAR_fieldNames, 'VAR_tablePhpName');
     $this->getDisplayGroup('VAR_tablePhpName')->setLegend('Add VAR_tablePhpName');
     EasyBib_Form_Decorator::setFormDecorator($this, EasyBib_Form_Decorator::BOOTSTRAP, 'submit', 'cancel');
     parent::init();
 }
Ejemplo n.º 6
0
 /**
  * init
  *
  * @return void
  */
 public function init()
 {
     $this->setMethod('post');
     $this->setAttrib('id', 'jump');
     $this->setAttrib('class', 'form-inline');
     $this->addElement('text', 'p', array('label' => 'Jump to page', 'required' => true, 'validators' => array('Int')));
     $this->addElement('submit', 'submit', array('ignore' => true, 'label' => 'Go'));
     $this->addDisplayGroup(array('p', 'submit'), 'jumpForm', array('legend' => ''));
     \EasyBib_Form_Decorator::setFormDecorator($this, \EasyBib_Form_Decorator::BOOTSTRAP_MINIMAL, 'submit', 'cancel');
     $this->getElement('submit')->setAttrib('class', 'btn btn-primary btn-mini');
     $this->getElement('p')->setAttrib('class', 'input-mini');
     $this->setAttrib('style', 'margin: 0;');
 }
Ejemplo n.º 7
0
 public function init()
 {
     $this->setMethod('post');
     $email = new \Zend_Form_Element_Text('email');
     $password = new \Zend_Form_Element_Password('password');
     $submit = new \Zend_Form_Element_Button('submit');
     $email->setLabel('Email:')->setAttrib('class', 'form-control')->setRequired(true)->addValidator('emailAddress')->setErrorMessages(array('emailAddress' => 'Geçerli bir email adresi giriniz.'));
     $password->setLabel('Şifre:')->setRequired(true)->setAttrib('class', 'form-control')->setValidators(array(array('validator' => 'StringLength', 'options' => array(6, 20))))->setErrorMessages(array('StringLength' => 'Şifre en az 6 karakter ve en fazla 20 karakter olabilir'));
     $submit->setLabel('Giriş')->setAttrib('class', 'btn btn-lg btn-info btn-block')->setAttrib('type', 'submit');
     $this->addElements(array($email, $password, $submit));
     $this->addDisplayGroup(array('email', 'password', 'submit'), 'login');
     \EasyBib_Form_Decorator::setFormDecorator($this, \EasyBib_Form_Decorator::BOOTSTRAP_MINIMAL, 'submit', 'cancel');
 }
Ejemplo n.º 8
0
 public function init()
 {
     $this->setAttrib('class', 'form-horizontal');
     $tweet = new Zend_Form_Element_Textarea('message');
     $tweet->setRequired()->addValidator('StringLength', false, array('max' => 140))->setLabel('Message')->setOptions(array('cols' => '70', 'rows' => '2'));
     $hash = new Zend_Form_Element_Hash('hash');
     $submit = new Zend_Form_Element_Submit('Poster');
     $cancel = new Zend_Form_Element_Button('Annuler');
     $this->addElements(array($tweet, $hash, $submit, $cancel));
     // add display group
     $this->addDisplayGroup(array('message', 'Poster', 'Annuler'), 'tweet');
     $this->getDisplayGroup('tweet')->setLegend('Poster un tweet');
     // set decorators
     EasyBib_Form_Decorator::setFormDecorator($this, EasyBib_Form_Decorator::BOOTSTRAP, 'Poster', 'Annuler');
 }
Ejemplo n.º 9
0
 public function init()
 {
     // $this->setDefaultTranslator(\Zend_Registry::get('Zend_Translate')); ???
     $this->setMethod('POST');
     $this->setAction('/index/add-custom');
     $this->setAttrib('id', 'addQuote');
     $quote = new \Zend_Form_Element_Textarea('quote');
     $name = new \Zend_Form_Element_Text('name');
     $submit = new \Zend_Form_Element_Button('submit');
     $quote->setLabel('Your wise words:')->setRequired(true)->setAttrib('rows', '4')->setTranslator(\Zend_Registry::get('Zend_Translate'));
     $name->setLabel('Your name:')->setRequired(true);
     $submit->setLabel('List my quote');
     $this->addElements(array($quote, $name, $submit));
     \EasyBib_Form_Decorator::setFormDecorator($this, \EasyBib_Form_Decorator::BOOTSTRAP, 'submit');
 }
Ejemplo n.º 10
0
 /**
  * init
  * Builds a confirm form for {@link \Lagged\Zf\Crud\Controller::deleteAction()}.
  *
  * @return void
  */
 public function init()
 {
     $this->setMethod('post');
     $this->setAttrib('class', 'form-horizontal');
     $confirm = new \Zend_Form_Element_Select('confirm');
     $confirm->setLabel('Please confirm')->setRequired(true)->setMultiOptions(array('no' => 'No', 'yes' => 'Yes'))->addValidator('NotEmpty', true);
     $this->addElement($confirm);
     $this->addElement('submit', 'submit', array('ignore' => true, 'label' => 'I confirm!'));
     $elements = $this->getElements();
     $this->addDisplayGroup($elements, 'edit', array('legend' => 'Delete Entry'));
     /**
      * @desc Apply Twitter Bootstrap to all elements.
      */
     \EasyBib_Form_Decorator::setFormDecorator($this, \EasyBib_Form_Decorator::BOOTSTRAP, 'submit', 'cancel');
     $this->getElement('submit')->setAttrib('class', 'btn btn-danger');
 }
Ejemplo n.º 11
0
 public function init()
 {
     $this->setMethod('post');
     $name = new \Zend_Form_Element_Text('name');
     $submit = new \Zend_Form_Element_Button('submit');
     $cancel = new \Zend_Form_Element_Button('cancel');
     $name->setLabel('Kategori Adı:')->setAttrib('placeholder', 'Kategori adı giriniz!')->setAttrib('class', 'form-control')->setRequired(true)->setDescription('')->setErrorMessages(array('required' => 'Kategori adı zorunludur!'));
     $submit->setLabel('Kaydet')->setAttrib('class', 'btn btn-lg btn-primary btn-block')->setAttrib('type', 'submit');
     $cancel->setLabel('İptal')->setAttrib('class', 'btn btn-md btn-default btn-block')->setAttrib('type', 'reset');
     $elementsArray = array($name, $submit, $cancel);
     // add elements
     $this->addElements($elementsArray);
     // add display group
     $this->addDisplayGroup(array('categoryName', 'submit', 'cancel'), 'users');
     \EasyBib_Form_Decorator::setFormDecorator($this, \EasyBib_Form_Decorator::BOOTSTRAP_MINIMAL, 'submit', 'cancel');
 }
Ejemplo n.º 12
0
 public function init()
 {
     $this->setMethod('post');
     $message = new \Zend_Form_Element_Textarea('message');
     $submit = new \Zend_Form_Element_Button('submit');
     $cancel = new \Zend_Form_Element_Button('cancel');
     $message->setLabel('Mesaj:')->setAttrib('placeholder', 'Mesaj giriniz!')->setAttrib('class', 'form-control')->setAttrib('rows', '5')->setRequired(true)->setDescription('')->setErrorMessages(array('required' => 'Bu alan gereklidir!'));
     $submit->setLabel('Yanıtla')->setAttrib('class', 'btn btn-lg btn-primary btn-block')->setAttrib('type', 'submit');
     $cancel->setLabel('İptal')->setAttrib('class', 'btn btn-md btn-default btn-block')->setAttrib('type', 'reset');
     //$hash->setIgnore(true);
     // add elements
     $this->addElements(array($message, $submit, $cancel));
     // add display group
     $this->addDisplayGroup(array('message', 'submit', 'cancel'), 'ticker_replies');
     \EasyBib_Form_Decorator::setFormDecorator($this, \EasyBib_Form_Decorator::BOOTSTRAP_MINIMAL, 'submit', 'cancel');
 }
Ejemplo n.º 13
0
 public function init()
 {
     $this->setMethod('post');
     $mail = new \Zend_Form_Element_Text('_username');
     $password = new \Zend_Form_Element_Password('_password');
     $submit = new \Zend_Form_Element_Button('submit');
     $mail->setLabel('Eposta:')->setAttrib('placeholder', 'eposta adresinizi giriniz!')->setAttrib('class', 'form-control')->setRequired(true)->setDescription('')->addValidator('emailAddress')->setErrorMessages(array('emailAddress' => 'Geçerli bir eposta adresi giriniz!'));
     $password->setLabel('Parola:')->setRequired(true)->setAttrib('class', 'form-control')->setAttrib('placeholder', '*****')->setValidators(array(array('validator' => 'StringLength', 'options' => array(5, 30))))->setErrorMessages(array('StringLength' => 'En Az 5 karakter ve en fazla 30 karakter olabilir!'));
     $submit->setLabel('Giriş')->setAttrib('class', 'btn btn-lg btn-primary btn-block')->setAttrib('type', 'submit');
     // add elements
     $this->addElements(array($mail, $password, $submit));
     // add display group
     $this->addDisplayGroup(array('email', 'password', 'submit'), 'users');
     // set decorators
     \EasyBib_Form_Decorator::setFormDecorator($this, \EasyBib_Form_Decorator::BOOTSTRAP_MINIMAL, 'submit', 'cancel');
 }
Ejemplo n.º 14
0
 /**
  * Generate the form from columns from \Zend_Db_Table
  *
  * @param array $cols
  *
  * @return void
  * @uses   self::_createElement()
  * @uses   EasyBib_Form_Decorator::setFormDecorator()
  */
 public function generate(array $cols)
 {
     foreach ($cols as $col) {
         if (count($this->primaryKeys) > 1) {
             $this->_createElement($col);
         } else {
             if (count($this->primaryKeys) == 1 && !$col['PRIMARY']) {
                 $this->_createElement($col);
             }
         }
     }
     $this->addElement('submit', 'submit', array('ignore' => true, 'label' => 'submit'));
     $elements = $this->getElements();
     $this->addDisplayGroup($elements, 'edit', array('legend' => 'Edit Entry'));
     $this->setAttrib('class', 'form-horizontal');
     $this->setMethod('post');
     \EasyBib_Form_Decorator::setFormDecorator($this, \EasyBib_Form_Decorator::BOOTSTRAP, 'submit', 'cancel');
 }
Ejemplo n.º 15
0
 public function init()
 {
     $this->setAttrib('class', 'form-horizontal');
     $login = new Zend_Form_Element_Text('login');
     $login->setLabel('Login')->setRequired();
     $validator = new Zend_Validate_StringLength();
     $validator->setMax(32);
     $login->addValidator($validator);
     $pass = new Zend_Form_Element_Password('pass');
     $pass->setLabel('Mot de passe')->setRequired();
     $hash = new Zend_Form_Element_Hash('hash');
     $submit = new Zend_Form_Element_Submit('connexion');
     $submit->setLabel('Se Connecter');
     $this->addElements(array($login, $pass, $hash, $submit));
     // add display group
     $this->addDisplayGroup(array('login', 'pass', 'connexion'), 'users');
     $this->getDisplayGroup('users')->setLegend('Se connecter');
     // set decorators
     EasyBib_Form_Decorator::setFormDecorator($this, EasyBib_Form_Decorator::BOOTSTRAP, 'connexion');
 }
Ejemplo n.º 16
0
 /**
  * init
  *
  * @return void
  * @TODO Validators
  */
 public function init()
 {
     $this->setMethod('post');
     $this->setAttrib('id', 'searchForm');
     $this->setAttrib('class', 'form-inline');
     $this->setAttrib('style', 'margin: 0');
     $this->addElement('text', 'search', array('label' => 'Term', 'required' => true));
     $this->addElement('checkbox', 'exact', array('label' => 'exact'));
     $this->columns = new \Zend_Form_Element_Select('columns');
     $this->columns->setLabel('into')->setRequired(true)->setRegisterInArrayValidator(false);
     $this->addElement($this->columns);
     $this->addElement('submit', 'submit', array('ignore' => true, 'label' => 'Search'));
     $this->addDisplayGroup(array('search', 'exact', 'columns', 'submit'), 'searchForm', array('legend' => ''));
     \EasyBib_Form_Decorator::setFormDecorator($this, \EasyBib_Form_Decorator::BOOTSTRAP_MINIMAL, 'submit', 'cancel');
     $this->getElement('submit')->setAttrib('class', 'btn btn-primary btn-mini');
     $this->getElement('search')->setAttrib('style', 'margin-right: 10px; width: auto;');
     $this->getElement('search')->setAttrib('class', 'input-medium');
     $this->getElement('exact')->setAttrib('style', 'margin: -2px 10px 0 0;');
     $this->getElement('columns')->setAttrib('class', 'input-medium');
     $this->getElement('columns')->setAttrib('style', 'margin-right: 10px;');
 }
Ejemplo n.º 17
0
 public function init()
 {
     $this->setMethod('post');
     $subject = new \Zend_Form_Element_Text('subject');
     $content = new \Zend_Form_Element_Textarea('content');
     $priorityId = new \Zend_Form_Element_Select('priorityId');
     $categories = new \Zend_Form_Element_Select('categories', array('multiple' => true));
     $submit = new \Zend_Form_Element_Button('submit');
     $cancel = new \Zend_Form_Element_Button('cancel');
     //$hash           = new \Zend_Form_Element_Hash('csrf');
     $subject->setLabel('Konu:')->setAttrib('placeholder', 'Konu giriniz!')->setAttrib('class', 'form-control')->setRequired(true)->setDescription('')->setErrorMessages(array('required' => 'Bu alan gereklidir!'));
     $content->setLabel('Mesaj:')->setAttrib('placeholder', 'Mesaj giriniz!')->setAttrib('class', 'form-control')->setAttrib('rows', '5')->setRequired(true)->setDescription('')->setErrorMessages(array('required' => 'Bu alan gereklidir!'));
     $priorityId->setLabel('Öncelik:')->setAttrib('placeholder', 'Öncelik seçiniz!')->setAttrib('class', 'form-control')->setRequired(true)->setDescription('')->setErrorMessages(array('required' => 'Bu alan gereklidir!'));
     $categories->setLabel('Kategori:')->setAttrib('placeholder', 'Kategori seçiniz!')->setAttrib('class', 'form-control')->setRequired(true)->setDescription('')->setValidators(array('StringLength'))->setErrorMessages(array('StringLength' => 'En az bir tane seçmelisiniz!', 'reuqired' => 'Bu alan gereklidir'));
     $submit->setLabel('Kaydet')->setAttrib('class', 'btn btn-lg btn-primary btn-block')->setAttrib('type', 'submit');
     $cancel->setLabel('İptal')->setAttrib('class', 'btn btn-md btn-default btn-block')->setAttrib('type', 'reset');
     //$hash->setIgnore(true);
     // add elements
     $this->addElements(array($subject, $content, $priorityId, $categories, $submit, $cancel));
     // add display group
     $this->addDisplayGroup(array('subject', 'content', 'priorityId', 'categories', 'submit', 'cancel'), 'users');
     // set decorators
     \EasyBib_Form_Decorator::setFormDecorator($this, \EasyBib_Form_Decorator::BOOTSTRAP_MINIMAL, 'submit', 'cancel');
 }
Ejemplo n.º 18
0
 /** Initialise values
  * @access public
  */
 public function init()
 {
     $this->_salt = Zend_Registry::get('config')->form->salt;
     EasyBib_Form_Decorator::setFormDecorator($this, EasyBib_Form_Decorator::BOOTSTRAP, 'submit', 'cancel');
 }
 /**
  * Configure user form.
  *
  * @return void
  */
 public function init()
 {
     // form config
     $this->setMethod('POST');
     $this->setAction('/test/add');
     $this->setAttrib('id', 'testForm');
     /**
      * Add class to form for label alignment
      *
      * - Vertical   .form-vertical   (not required)	Stacked, left-aligned labels over controls (default)
      * - Inline     .form-inline     Left-aligned label and inline-block controls for compact style
      * - Search     .form-search     Extra-rounded text input for a typical search aesthetic
      * - Horizontal .form-horizontal
      *
      * Use .form-horizontal to have same experience as with Bootstrap v1!
      */
     $this->setAttrib('class', 'form-horizontal');
     // create elements
     $userId = new Zend_Form_Element_Hidden('id');
     $mail = new Zend_Form_Element_Text('email');
     $name = new Zend_Form_Element_Text('name');
     $radio = new Zend_Form_Element_Radio('radio');
     $multi = new Zend_Form_Element_MultiCheckbox('multi');
     $captcha = new Zend_Form_Element_Captcha('captcha', array('captcha' => 'Figlet'));
     $submit = new Zend_Form_Element_Button('submit');
     $cancel = new Zend_Form_Element_Button('cancel');
     // config elements
     $userId->addValidator('digits');
     $mail->setLabel('Mail:')->setRequired(true)->addValidator('emailAddress');
     $name->setLabel('Name:')->setRequired(true);
     $radio->setLabel('Radio:')->setMultiOptions(array('1' => PHP_EOL . 'test1', '2' => PHP_EOL . 'test2'))->setRequired(true);
     $multiOptions = array('view' => PHP_EOL . 'view', 'edit' => PHP_EOL . 'edit', 'comment' => PHP_EOL . 'comment');
     $multi->setLabel('Multi:')->addValidator('Alpha')->setMultiOptions($multiOptions)->setRequired(true);
     $captcha->setLabel('Captcha:')->setRequired(true)->setDescription("This is a test");
     $submit->setLabel('Save');
     $cancel->setLabel('Cancel');
     // add elements
     $this->addElements(array($userId, $mail, $name, $radio, $multi, $captcha, $submit, $cancel));
     // add display group
     $this->addDisplayGroup(array('email', 'name', 'radio', 'multi', 'captcha', 'submit', 'cancel'), 'users');
     $this->getDisplayGroup('users')->setLegend('Add User');
     // set decorators
     EasyBib_Form_Decorator::setFormDecorator($this, EasyBib_Form_Decorator::BOOTSTRAP, 'submit', 'cancel');
 }