Add link to the administration page of the account, use category instead
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 3 Oct 2010 19:16:29 +0000 (21:16 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 3 Oct 2010 19:16:29 +0000 (21:16 +0200)
of promo in the "promo" column of the directory.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
templates/xnetgrp/annuaire.tpl
templates/xnetgrp/membres-edit.tpl

index 7da8c93..dd0dc5a 100644 (file)
@@ -110,9 +110,9 @@ Le groupe {$asso->nom} compte {$nb_tot} membres&nbsp;:
       {profile user=$user promo=false}
     </td>
     <td>
-      {if $user->group_perms eq 'admin' && $user->promo()}<strong>{/if}
-      {$user->promo()}
-      {if $user->group_perms eq 'admin' && $user->promo()}</strong>{/if}
+      {if $user->group_perms eq 'admin' && $user->category()}<strong>{/if}
+      {$user->category()|default:"Extérieur"}
+      {if $user->group_perms eq 'admin' && $user->category()}</strong>{/if}
     </td>
     {if $user->group_comm}
     <td>{$user->group_comm}</td>
index 596f8ac..ea1050d 100644 (file)
 <form method="post" action="{$platal->ns}member/{$platal->argv[1]}">
   {xsrf_token_field}
   <table cellpadding="0" cellspacing="0" class='tinybicol'>
+    {if hasPerm('admin')}
+    <tr class="pair">
+      <td class="titre">
+        Identifiant unique&nbsp;:
+      </td>
+      <td>
+        {$user->hruid}
+        <a href="https://www.polytechnique.org/admin/user/{$user->hruid}">{icon name="user_edit" title="Administer"}</a>
+      </td>
+    </tr>
+    {/if}
     <tr class="pair">
       <td class="titre">
         Permissions&nbsp;: