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
'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');