Grey submit button on send mail page after click.
[platal.git] / templates / admin / validation.tpl
index 1ac43ff..9ca178c 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2014 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -37,7 +37,7 @@ function toggleField(name, id, obj) {
 
 {iterate item=valid from=$vit}
 {assign var=type value=$valid->type}
-{if !t($hide_requests[$type])}
+{if !t($hide_requests[$type]) && !($valid->requireAdmin && !$isAdmin)}
 <br />
 <table class="bicol">
   <tr>
@@ -51,10 +51,12 @@ function toggleField(name, id, obj) {
       <a href="profile/{$profile->hrpid}" class="popup2">
       {/if}
         {$valid->user->fullName("promo")}
+      {if $valid->user->hasProfile()}
       </a>
+      {/if}
     </td>
   </tr>
-  {if $valid->profile && !$valid->userIsProfileOwner}
+  {if t($valid->profile) && !$valid->userIsProfileOwner}
   <tr>
     <td class="titre" style="width: 20%">Profil concernĂ©&nbsp;:</td>
     <td>
@@ -187,7 +189,7 @@ function toggleField(name, id, obj) {
 {/if}
 
 <p>
-  Afficher seulement les validation suivantes&nbsp;:
+  Afficher seulement les validations suivantes&nbsp;:
 </p>
 
 <form action="admin/validate" method="post">
@@ -198,4 +200,4 @@ function toggleField(name, id, obj) {
   <div class="center" style="clear:left"><input type="submit" name="hide" value="Valider" /></div>
 </form>
 
-{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
+{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}