Example #1
0
 /**
  * @return Application_Form_Filters|void
  */
 public function init()
 {
     parent::init();
     $this->setName('filter-form')->setAttrib('id', 'filter-form')->setMethod('post')->setAttrib('class', 'span9');
     $this->setDecorators(array('FormElements', 'Form'));
     $this->addElement($this->_text2());
     $this->addDisplayGroup(array($this->_text(), $this->_filterColumn($this->getValues())), 'filters-group');
     $this->addDisplayGroup(array($this->_filterValue(), $this->_find(), $this->_reset()), 'filter-select-group');
     $this->getDisplayGroup('filters-group')->setDecorators(array('FormElements', array('HtmlTag', array('tag' => 'div', 'class' => 'input-prepend'))));
     $this->getDisplayGroup('filter-select-group')->setDecorators(array('FormElements', array('HtmlTag', array('tag' => 'div', 'class' => 'input-append'))));
     return $this;
 }
Example #2
0
 /**
  * Create a form for adding new users
  *
  * @param string $id          id of the form
  * @param string $method      method of submission
  * @param array  $attributes  extra form attributes
  * @param bool   $trackSubmit trackSubmit
  *
  * @return Core_Form
  */
 function __construct($id = 'adduserform', $method = 'post', $attributes = null, $trackSubmit = false)
 {
     parent::__construct($id, $method, $attributes, $trackSubmit);
 }
Example #3
0
 protected function _submit()
 {
     $sudmit = parent::_submit();
     $sudmit->setLabel('Next');
     return $sudmit;
 }
Example #4
0
 function __construct($id = 'uploadform', $method = 'post', $attributes = null, $trackSubmit = false)
 {
     parent::__construct($id, $method, $attributes = array('autocomplete' => 'off', 'enctype' => 'multipart/form-data'), $trackSubmit);
 }
Example #5
0
 function __construct($id = 'signupform', $method = 'post', $attributes = null, $trackSubmit = false)
 {
     parent::__construct($id, $method, $attributes = array('autocomplete' => 'off'), $trackSubmit);
 }
Example #6
0
 public function isValid($data)
 {
     $valid = parent::isValid($data);
     if (!empty($data['relatedTable'])) {
         $relatedTableValid = $this->_validateRelatedTable($data['relatedTable']);
         if (!$relatedTableValid) {
             $valid = false;
         }
     }
     return $valid;
 }