summaryrefslogtreecommitdiffstats
path: root/application/forms/Login.php
diff options
context:
space:
mode:
authorsebastian wagner2011-07-04 17:37:02 +0200
committersebastian wagner2011-07-04 17:37:02 +0200
commit5359f6e8de1c409f4cb717c700de63409dfb3a49 (patch)
tree45dda64680ee4da0055fff1eaa92c1d87638d093 /application/forms/Login.php
parentminor (diff)
downloadpoolctrl-5359f6e8de1c409f4cb717c700de63409dfb3a49.tar.gz
poolctrl-5359f6e8de1c409f4cb717c700de63409dfb3a49.tar.xz
poolctrl-5359f6e8de1c409f4cb717c700de63409dfb3a49.zip
login formular
Diffstat (limited to 'application/forms/Login.php')
-rw-r--r--application/forms/Login.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/application/forms/Login.php b/application/forms/Login.php
new file mode 100644
index 0000000..d9084ec
--- /dev/null
+++ b/application/forms/Login.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg
+ * This program is free software distributed under the GPL version 2.
+ * See http://gpl.openslx.org/
+ *
+ * If you have any feedback please consult http://feedback.openslx.org/ and
+ * send your suggestions, praise, or complaints to feedback@openslx.org
+ *
+ * General information about OpenSLX can be found at http://openslx.org/
+ */
+
+class Application_Form_Login extends Zend_Form
+{
+
+ public function init()
+ {
+ $this->setName("LoginForm");
+ $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',
+ ));
+ }
+
+
+}
+