Rewrite admin/accounts.
[platal.git] / templates / admin / validation.tpl
index 970e2f9..8c0cb21 100644 (file)
@@ -46,11 +46,24 @@ 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")}
       </a>
     </td>
   </tr>
+  {if $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 +149,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}