Merge remote branch 'origin/xorg/maint' into xorg/master
[platal.git] / templates / profile / groups.tpl
index 5f76ed4..fdae749 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -20,7 +20,7 @@
 {*                                                                        *}
 {**************************************************************************}
 
-<table class="bicol" style="margin-bottom: 1em" summary="Profil: Informations Polytechniciennes">
+<table class="bicol" style="margin-bottom: 1em" summary="Profil&nbsp;: Informations Polytechniciennes">
   <tr>
     <th colspan="2">
       <div class="flags" style="float: left">
     <td class="titre" style="width: 30%">{if $old}ex-{/if}Section</td>
     <td>
       <select name="section">
-        {select_db_table table="sections" valeur=$section}
+        {select_db_table table="profile_section_enum" valeur=$section pad="1"}
       </select>
     </td>
   </tr>
   <!-- Binets -->
-  <tr id="binets">
+  <tr id="binets_table">
     <td class="titre">{if $old}ex-{/if}Binet(s)</td>
     <td>
-      <select name="binets_sel" onchange="updateGroup('binets')">
-        {select_db_table table="binets_def" valeur=0 champ="text" pad='1'}
+      <select name="binets_sel" onchange="updateElement('binets')">
+        {select_db_table table="profile_binet_enum" valeur=0 champ="text" pad="1"}
       </select>
       <a id="binets_add" style="display: none"
-         href="javascript:addGroup('binets')">{icon name="add" title="Ajouter ce binet"}</a>
+         href="javascript:addBinet()">{icon name="add" title="Ajouter ce binet"}</a>
     </td>
   </tr>
   {foreach item=text key=bid from=$binets}
@@ -58,7 +58,7 @@
       <div style="float: left; width: 70%">
         {$text}
       </div>
-      <a href="javascript:removeGroup('binets', {$bid})">{icon name="cross" title="Supprimer ce binet"}</a>
+      <a href="javascript:removeElement('binets',{$bid})">{icon name="cross" title="Supprimer ce binet"}</a>
     </td>
   </tr>
   {/foreach}
@@ -72,7 +72,7 @@
       <p>
         La gestion des annuaires des groupes X est réalisée grâce à
         <a href="http://www.polytechnique.net">Polytechnique.net</a>. Pour faire apparaître un groupe sur ta fiche
-        il faut que soit inscrit dans ce groupe sur l'annuaire sur Polytechnique.net.
+        il faut que tu sois inscrit dans ce groupe sur <a href="http://www.polytechnique.net">Polytechnique.net</a>.
       </p>
     </td>
   </tr>
@@ -88,7 +88,7 @@
     <td>
       {assign var=groupcat value=""}
       {assign var=ingroup value=false}
-      <select name="groupesx_sub" onchange="updateGroupSubLink(this)">
+      <select name="groupesx_sub" onchange="updateGroupSubLink()">
         {iterate from=$listgroups item=group}
         {if $group.dom neq $groupcat}
           {if $ingroup}
   </tr>
   {if $mygroups->total()}
   <tr class="pair">
-    <td colspan="2">Tu es actuellement dans les groupes suivants :</td>
+    <td colspan="2">Tu es actuellement dans les groupes suivants&nbsp;:</td>
   </tr>
   {/if}
   {assign var=grp_admin value=false}
     <td colspan="2" class="smaller">
       <div class="titre">Signification des symboles&nbsp;:</div>
       {if $grp_public}{icon name=error} L'annuaire du groupe est à visibilité restreinte et ce groupe n'apparaîtra pas sur ta
-      fiche{/if}
+      fiche.{/if}
       {if $grp_public && $grp_admin}<br />{/if}
-      {if $grp_admin}{icon name=wrench} Tu es administrateur du groupe{/if}
+      {if $grp_admin}{icon name=wrench} Tu es administrateur du groupe.{/if}
     </td>
   </tr>
   {/if}