CC-3921: Add mobile phone number field to user record
-done
This commit is contained in:
parent
3f0a06ee2b
commit
9cabd4d32c
10 changed files with 119 additions and 19 deletions
|
@ -51,6 +51,12 @@ class Application_Form_AddUser extends Zend_Form
|
|||
$email->addFilter('StringTrim');
|
||||
$email->addValidator('EmailAddress');
|
||||
$this->addElement($email);
|
||||
|
||||
$cellPhone = new Zend_Form_Element_Text('cell_phone');
|
||||
$cellPhone->setLabel('Mobile Phone:');
|
||||
$cellPhone->setAttrib('class', 'input_text');
|
||||
$cellPhone->addFilter('StringTrim');
|
||||
$this->addElement($cellPhone);
|
||||
|
||||
$skype = new Zend_Form_Element_Text('skype');
|
||||
$skype->setLabel('Skype:');
|
||||
|
@ -91,7 +97,7 @@ class Application_Form_AddUser extends Zend_Form
|
|||
$count = CcSubjsQuery::create()->filterByDbLogin($data['login'])->count();
|
||||
|
||||
if ($count != 0){
|
||||
$this->getElement('login')->setErrors(array("login name is not unique."));
|
||||
$this->getElement('login')->setErrors(array("Login name is not unique."));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue