Skip to content

Commit

Permalink
Added links
Browse files Browse the repository at this point in the history
  • Loading branch information
waltertamboer committed Mar 19, 2014
1 parent 0df235c commit 57d0c74
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -89,8 +89,11 @@ private function addEmailValidationElement()

private function addAgreeElement($name = 'agree')
{
$privacyUrl = '/company/legal/privacy-policy';
$termsOfUseUrl = '/company/legal/terms-of-use';

$agreeElement = new Checkbox($name);
$agreeElement->setLabel('I agree to the Terms of Use and Privacy Policy.');
$agreeElement->setLabel('I agree to the <a href="' . $termsOfUseUrl . '">Terms of Use</a> and <a href="' . $privacyUrl . '">Privacy Policy</a>.');
$agreeElement->setCheckedValue('agreed');
$agreeElement->setAttribute('id', $name);
$this->add($agreeElement);
Expand Down

0 comments on commit 57d0c74

Please sign in to comment.