X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fforms%2FUser.php;h=288dec6ee1d0644b906ef02eacd4dd32e1050f1f;hp=40bd5185a9764885cdc088bc5fb03b8d7ee513c0;hb=9e25156ae46eb12f1801f503c7fdf51534d1c1a9;hpb=a64d41557a62ec6051d7fa08d1ba941e089aa5c2 diff --git a/application/forms/User.php b/application/forms/User.php index 40bd518..288dec6 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 @@ -32,13 +34,15 @@ class Syj_Form_User extends Syj_Form_TableAbstract $email = array('Text', 'user_email', array( 'label' => __("email"), - 'description' => __("After creating your account, you will receive a confirmation email. You have 7 days to confirm otherwise, your account and your routes will all be deleted."), + 'description' => __("After creating your account, you will receive a confirmation email. You have 7 days to confirm otherwise, your account will be deleted."), 'required' => true )); $this->setMainElements(array($name, $pass, $pass_confirm, $email)); - $anchor = $this->getView()->Anchor("termsofuse", $translator->translate("terms of use"), array('id' => 'user_termsofuse_anchor')); + $anchor = $this->getView()->Anchor("termsofuse?format=raw", + $translator->translate("terms of use"), + array('id' => 'user_termsofuse_anchor')); $text = $translator->translate("I've read and accepted %s"); $text = vsprintf($text, $anchor); $this->addElement('Checkbox', 'user_accept', array("label" => $text,