X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fforms%2FUser.php;h=34a5608701348a72385aba9821a65d4de0753fff;hb=ce001229accb2aff799560eec402344f0dbb1762;hp=b74258abd41148369fad6a05306b50ba513a92b2;hpb=190fd621df4920c56a422c03663874cddaa67d64;p=syj.git diff --git a/application/forms/User.php b/application/forms/User.php index b74258a..34a5608 100644 --- a/application/forms/User.php +++ b/application/forms/User.php @@ -7,9 +7,11 @@ class Syj_Form_User extends Syj_Form_TableAbstract public function init() { $translator = $this->getTranslator(); + $desc = $translator->translate("only letters, numbers, underscores or dots"); $name = array('Text', 'user_pseudo', array( 'label' => __("user name"), - 'attribs' => array('maxlength' => '20'), + 'attribs' => array('maxlength' => '20', 'autocomplete' => 'off'), + 'description' => $desc, 'validators' => array(new Zend_Validate_StringLength(0, 20), new Zend_Validate_Regex('/^[a-zA-Z0-9_\.]+$/')), 'required' => true @@ -45,7 +47,7 @@ class Syj_Form_User extends Syj_Form_TableAbstract 'decorators' => array( 'ViewHelper', 'label', - array('HtmlTag', array('tag' => 'div'))), + array('HtmlTag', array('tag' => 'div', 'id' => 'user_accept_container'))), 'validators' => array(new Zend_Validate_Identical('1')))); $decorator = $this->user_accept->getDecorator('Zend_Form_Decorator_Label');