From e510229fdb9d05701d3dc2eb03760b00f3944adf Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Sat, 7 May 2005 13:43:30 +0000 Subject: [PATCH] closes FS301 git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-628 --- ChangeLog | 1 + include/validations.inc.php | 12 ++++-- templates/admin/valider.tpl | 94 ++++++++++++++++++++++++++------------------- templates/alias.tpl | 2 +- 4 files changed, 64 insertions(+), 45 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6ac7b19..8dc251d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ Bug/Wish : * Admin : - #298: On su exit, go back to SU page on the given account. -MC - #300: Notify hotliners for validation comments. -Car + - #301: Some design issues solved for validation. -MC * Misc : - #290: Date display with no preceding 0. -Car diff --git a/include/validations.inc.php b/include/validations.inc.php index ce0c934..14553f5 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -206,10 +206,14 @@ class Validate } if (Env::has('refuse')) { - $this->sendmail(false); - $this->clean(); - $this->trig('mail envoyé'); - return true; + if (Env::get('comm')) { + $this->sendmail(false); + $this->clean(); + $this->trig('mail envoyé'); + return true; + } else { + $this->trig('pas de motivation pour le refus !!!'); + } } return false; diff --git a/templates/admin/valider.tpl b/templates/admin/valider.tpl index 98bb935..f49227a 100644 --- a/templates/admin/valider.tpl +++ b/templates/admin/valider.tpl @@ -25,47 +25,61 @@ {iterate item=valid from=$vit|smarty:nodefaults}
-
- rules}> - - - - - - - - {include file=$valid->formu()} - {if $valid->comments} - - {/if} - {foreach from=$valid->comments item=c} - - - - - {/foreach} - - + +
{$valid->type}
Demandeur : - - {$valid->prenom} {$valid->nom} (X{$valid->promo}) - -
Commentaires
- {$c[0]} - {$c[1]}
- Commentaire:
-
+ + + + + + + + + {include file=$valid->formu()} + + {foreach from=$valid->comments item=c} + + + + + {/foreach} + + + + + + - -
{$valid->type}
Demandeur : + + {$valid->prenom} {$valid->nom} (X{$valid->promo}) + +
Commentaires
+ {$c[0]} + {$c[1]}
+ +
+ + + + +
+ +
+ +
Réponse
rules}> +
+
+ Ajouté dans l'email :
+
- - - - - - {if $valid->refuse}{/if} - -
- + + + + + {if $valid->refuse}{/if} + + + +
{/iterate} {else} diff --git a/templates/alias.tpl b/templates/alias.tpl index 259d36d..87aa444 100644 --- a/templates/alias.tpl +++ b/templates/alias.tpl @@ -92,7 +92,7 @@
- + adresse publique (apparaît sur ta fiche). -- 2.1.4