Grey submit button on send mail page after click.
[platal.git] / templates / admin / validation.tpl
index 970e2f9..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 !$hide_requests[$type]}
+{if !t($hide_requests[$type]) && !($valid->requireAdmin && !$isAdmin)}
 <br />
 <table class="bicol">
   <tr>
@@ -46,11 +46,26 @@ function toggleField(name, id, obj) {
   <tr>
     <td class="titre" style="width: 20%">Demandeur&nbsp;:</td>
     <td>
-      <a href="profile/{$valid->user->login()}" class="popup2">
-        {$valid->user->fullName()} ({$valid->user->promo()})
+      {if $valid->user->hasProfile()}
+      {assign var="profile" value=$valid->user->profile()}
+      <a href="profile/{$profile->hrpid}" class="popup2">
+      {/if}
+        {$valid->user->fullName("promo")}
+      {if $valid->user->hasProfile()}
+      </a>
+      {/if}
+    </td>
+  </tr>
+  {if t($valid->profile) && !$valid->userIsProfileOwner}
+  <tr>
+    <td class="titre" style="width: 20%">Profil concerné&nbsp;:</td>
+    <td>
+      <a href="profile/{$valid->profile->hrpid}" class="popup2">
+        {$valid->profile->fullName("promo")}
       </a>
     </td>
   </tr>
+  {/if}
   <tr>
     <td class="titre" style="width: 20%">Date de demande&nbsp;:</td>
     <td>
@@ -136,7 +151,7 @@ function toggleField(name, id, obj) {
         <div>
           Réponse préremplie&nbsp;:
           <select onchange="this.form.comm.value=this.value">
-            <option value=""></option>
+            <option value="">&nbsp;</option>
             {foreach from=$valid->answers() item=automatic_answer}
               <option value="{$automatic_answer.answer}">{$automatic_answer.title}</option>
             {/foreach}
@@ -174,15 +189,15 @@ 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">
   {foreach from=$categories item=type}
-    <div style="float:left;width:33%"><input type="checkbox" name="{$type}" id="hide_{$type}"{if !$hide_requests[$type]} checked="checked"{/if}/>
+    <div style="float:left;width:33%"><input type="checkbox" name="{$type}" id="hide_{$type}"{if !t($hide_requests[$type])} checked="checked"{/if}/>
     <label for="hide_{$type}">{$type}</label></div>
   {/foreach}
   <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: *}