summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/forms/AuthLogin.php
diff options
context:
space:
mode:
authormichael pereira2011-03-15 11:35:00 +0100
committermichael pereira2011-03-15 11:35:00 +0100
commit3f9700079f95c7fb715e5c9363e48dce6c7c627f (patch)
tree17fe70fcfbe651a9c52194423a67bac5a9c692e9 /application/modules/dev/forms/AuthLogin.php
parentRessource Controller (diff)
parentlinks korrigiert, dev ist nun lauffähig (diff)
downloadpbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.tar.gz
pbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.tar.xz
pbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.zip
Ressource gelöscht
Diffstat (limited to 'application/modules/dev/forms/AuthLogin.php')
-rw-r--r--application/modules/dev/forms/AuthLogin.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/application/modules/dev/forms/AuthLogin.php b/application/modules/dev/forms/AuthLogin.php
new file mode 100644
index 0000000..e996b1d
--- /dev/null
+++ b/application/modules/dev/forms/AuthLogin.php
@@ -0,0 +1,38 @@
+<?php
+
+class dev_Form_AuthLogin extends Zend_Form
+{
+
+ public function init()
+ {
+ $this->setName("Login");
+ $this->setMethod('post');
+
+ $this->addElement('text', 'email', array(
+ 'filters' => array('StringTrim', 'StringToLower'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'E-Mail:',
+ ));
+
+ $this->addElement('password', 'password', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'Password:',
+ ));
+
+ $this->addElement('submit', 'login', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Login',
+ ));
+ }
+
+
+}
+