summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/forms/NewPassword.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/dev/forms/NewPassword.php')
-rw-r--r--application/modules/dev/forms/NewPassword.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/application/modules/dev/forms/NewPassword.php b/application/modules/dev/forms/NewPassword.php
new file mode 100644
index 0000000..1023708
--- /dev/null
+++ b/application/modules/dev/forms/NewPassword.php
@@ -0,0 +1,37 @@
+<?php
+
+class dev_Form_NewPassword extends Zend_Form
+{
+ private $personID;
+
+ public function setPersonID($personID){
+ $this->personID = $personID;
+ }
+
+ public function init()
+ {
+ $this->setName("NewPassword");
+ $this->setMethod('post');
+
+ $this->addElement('hidden', 'personID', array(
+ 'value' => $this->personID
+ ));
+
+ $this->addElement('password', 'password', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'Password:',
+ ));
+
+ $this->addElement('submit', 'savePassword', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Save',
+ ));
+ }
+
+
+} \ No newline at end of file