]> dev.renevier.net Git - syj.git/blob - application/forms/Pending/ValidateCreation.php
version 0.1
[syj.git] / application / forms / Pending / ValidateCreation.php
1 <?php
2 /*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
3     and is published under the AGPL license. */
4
5 class Syj_Form_Pending_ValidateCreation extends Syj_Form_Pending
6 {
7    protected function getActivateOptions() {
8         $user = $this->_pending->user;
9
10         $translator = $this->getTranslator();
11         $activatetext = $translator->translate("Someone, probably you, has registered an account %s with email address %s on syj. To confirm this account creation, validate with following button.");
12         $pseudo = '<strong>' . htmlspecialchars('"' . $user->pseudo . '"') . '</strong>';
13         $email = '<strong>' . htmlspecialchars('"' . $user->email . '"') . '</strong>';
14         $activatetext = vsprintf ($activatetext, array($pseudo, $email));
15
16         return array(
17                 'label' => __("save"),
18                 'description' => $activatetext);
19     }
20
21     protected function getCancelOptions() {
22         return array(
23                 'label' => __("delete"),
24                 'description' => __("To cancel account creation, press following button. The account and all its data will be deleted.")
25                 );
26     }
27 }