var $unique;
// enable the refuse button
var $refuse = true;
+
var $type;
var $comments = Array();
// the validations rules : comments for admins
return true;
}
+ // mise à jour des informations
+ if (Env::has('edit')) {
+ if ($this->handle_editor()) {
+ $this->update();
+ $this->trig('requête mise à jour');
+ return true;
+ }
+ return false;
+ }
+
// ajout d'un commentaire
if (Env::has('hold') && Env::has('comm')) {
$formid = Env::i('formid');
$mailer = new HermesMailer;
$mailer->setSubject("Commentaires de validation {$this->type}");
$mailer->setFrom("validation+{$this->type}@{$globals->mail->domain}");
- $mailer->addTo("hotliners@{$globals->mail->domain}");
+ $mailer->addTo("hotliners@staff.polytechnique.org");
$body = "Validation {$this->type} pour {$this->prenom} {$this->nom}\n\n"
. S::v('bestalias')." a ajouté le commentaire :\n\n"
. Env::v('comm')."\n\n"
- . "cf la discussion sur : ".$globals->baseurl."/admin/valider.php";
+ . "cf la discussion sur : ".$globals->baseurl."/admin/validate";
$mailer->setTxtBody(wordwrap($body));
$mailer->send();
{ return null; }
// }}}
+ // {{{ function editor()
+
+ /** nom du formulaire d'édition */
+ function editor()
+ { return null; }
+
+ // }}}
// {{{ function answers()
/** automatic answers table for this type of validation */