diff options
| author | Simon Franz | 2011-03-16 16:19:28 +0100 |
|---|---|---|
| committer | Simon Franz | 2011-03-16 16:19:28 +0100 |
| commit | 7bb045fa152dec51a75f1ba8c45c016ba96c587c (patch) | |
| tree | 4dae9da1ce80771ee43b387d8e6d81ff253c1cd1 /application/modules/user/forms | |
| parent | sql-newdata korrigiert (diff) | |
| download | pbs2-7bb045fa152dec51a75f1ba8c45c016ba96c587c.tar.gz pbs2-7bb045fa152dec51a75f1ba8c45c016ba96c587c.tar.xz pbs2-7bb045fa152dec51a75f1ba8c45c016ba96c587c.zip | |
ClientController geändert, Forms können in FBGui und User nicht benutzt werden
Diffstat (limited to 'application/modules/user/forms')
| -rw-r--r-- | application/modules/user/forms/Client.php | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/application/modules/user/forms/Client.php b/application/modules/user/forms/Client.php new file mode 100644 index 0000000..a79ede1 --- /dev/null +++ b/application/modules/user/forms/Client.php @@ -0,0 +1,46 @@ +<?php + +class user_Form_Client extends Zend_Form +{ + + public function init() + { + $this->setName("pool"); + $this->setMethod('post'); + + $this->addElement('text', 'macadress', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'MacAdress:', + )); + $this->addElement('text', 'hardwarehash', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Hardwarehash:', + )); + + $this->addElement('submit', 'add', array( + 'required' => false, + 'ignore' => true, + 'label' => $this->buttontext, + )); + + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/user/client"' + )); + } + private $buttontext = 'Save'; + private $groups; + function setButtontext($v){ + $this->buttontext = $v; + } + + +} + |
