<?php
-/* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
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,
+ 'helper' => 'SyjFormCheckbox', // similar to FormCheckbox without a hidden input
'decorators' => array(
'ViewHelper',
'label',