Remove ajax.js.
[platal.git] / templates / admin / validation.tpl
index 6f4f833..1ac43ff 100644 (file)
@@ -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])}
 <br />
 <table class="bicol">
   <tr>
@@ -46,8 +46,11 @@ 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>
@@ -189,7 +192,7 @@ function toggleField(name, id, obj) {
 
 <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>