diff options
| author | Simon | 2011-03-18 09:59:02 +0100 |
|---|---|---|
| committer | Simon | 2011-03-18 09:59:02 +0100 |
| commit | 56d0655309fb13e8a2b8bb86a54206b419c32d18 (patch) | |
| tree | 8ffdf1cfc00eef35ec08d2310e62566df55508ce /application/modules/user/forms/Pool.php | |
| parent | Person und Gruppen, Fehler korrigiert + Layout (diff) | |
| download | pbs2-56d0655309fb13e8a2b8bb86a54206b419c32d18.tar.gz pbs2-56d0655309fb13e8a2b8bb86a54206b419c32d18.tar.xz pbs2-56d0655309fb13e8a2b8bb86a54206b419c32d18.zip | |
Datenbank update, PoolController
Diffstat (limited to 'application/modules/user/forms/Pool.php')
| -rw-r--r-- | application/modules/user/forms/Pool.php | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/application/modules/user/forms/Pool.php b/application/modules/user/forms/Pool.php new file mode 100644 index 0000000..909bdd6 --- /dev/null +++ b/application/modules/user/forms/Pool.php @@ -0,0 +1,54 @@ +<?php + +class user_Form_Pool extends Zend_Form +{ + + public function init() + { + $this->setName("pool"); + $this->setMethod('post'); + + $this->addElement('text', 'title', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 30)), + ), + 'required' => true, + 'label' => 'Title:', + )); + $this->addElement('textarea', 'description', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 140)), + ), + 'required' => false, + 'label' => 'Description:', + )); + // TODO: Add target of Filter + + $this->addElement('text', 'location', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 30)), + ), + 'required' => true, + 'label' => 'Location:', + )); + + $this->addElement('submit', 'add', array( + 'required' => false, + 'ignore' => true, + 'label' => $this->buttontext, + )); + + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/user/pool"' + )); + } + private $buttontext = 'Save'; + function setButtontext($v){ + $this->buttontext = $v; + } + +} + |
