Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
9f5bd98e | 3 | {* Copyright (C) 2003-2010 Polytechnique.org *} |
0337d704 | 4 | {* http://opensource.polytechnique.org/ *} |
5 | {* *} | |
6 | {* This program is free software; you can redistribute it and/or modify *} | |
7 | {* it under the terms of the GNU General Public License as published by *} | |
8 | {* the Free Software Foundation; either version 2 of the License, or *} | |
9 | {* (at your option) any later version. *} | |
10 | {* *} | |
11 | {* This program is distributed in the hope that it will be useful, *} | |
12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} | |
13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} | |
14 | {* GNU General Public License for more details. *} | |
15 | {* *} | |
16 | {* You should have received a copy of the GNU General Public License *} | |
17 | {* along with this program; if not, write to the Free Software *} | |
18 | {* Foundation, Inc., *} | |
19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} | |
20 | {* *} | |
21 | {**************************************************************************} | |
22 | ||
841ff7e7 | 23 | <table class="bicol" style="margin-bottom: 1em" summary="Profil : Informations Polytechniciennes"> |
92412b28 FB |
24 | <tr> |
25 | <th colspan="2"> | |
0c6cbd63 | 26 | <div class="flags" style="float: left"> |
ee12da4e FB |
27 | <input type="checkbox" name="accesX" checked="checked" disabled="disabled" /> |
28 | {icon name="flag_red" title="privé"} | |
0c6cbd63 | 29 | </div> |
92412b28 FB |
30 | Informations polytechniciennes |
31 | </th> | |
32 | </tr> | |
92412b28 | 33 | <tr class="top"> |
46ae38a9 | 34 | <td class="titre" style="width: 30%">{if $old}ex-{/if}Section</td> |
92412b28 FB |
35 | <td> |
36 | <select name="section"> | |
5c8a71f2 | 37 | {select_db_table table="profile_section_enum" valeur=$section} |
92412b28 FB |
38 | </select> |
39 | </td> | |
40 | </tr> | |
41 | <!-- Binets --> | |
6505acf7 | 42 | <tr id="binets_table"> |
46ae38a9 | 43 | <td class="titre">{if $old}ex-{/if}Binet(s)</td> |
92412b28 | 44 | <td> |
6505acf7 | 45 | <select name="binets_sel" onchange="updateElement('binets')"> |
5c8a71f2 | 46 | {select_db_table table="profile_binet_enum" valeur=0 champ="text" pad='1'} |
92412b28 | 47 | </select> |
46ae38a9 | 48 | <a id="binets_add" style="display: none" |
6505acf7 | 49 | href="javascript:addBinet()">{icon name="add" title="Ajouter ce binet"}</a> |
57b73804 FB |
50 | </td> |
51 | </tr> | |
52 | {foreach item=text key=bid from=$binets} | |
53 | <tr id="binets_{$bid}"> | |
54 | <td> | |
55 | <input type="hidden" name="binets[{$bid}]" value="{$text}" /> | |
56 | </td> | |
57 | <td> | |
b545e664 FB |
58 | <div style="float: left; width: 70%"> |
59 | {$text} | |
60 | </div> | |
6505acf7 | 61 | <a href="javascript:removeElement('binets', {$bid})">{icon name="cross" title="Supprimer ce binet"}</a> |
92412b28 FB |
62 | </td> |
63 | </tr> | |
57b73804 | 64 | {/foreach} |
b37aacd9 FB |
65 | </table> |
66 | <table class="bicol" style="margin-bottom: 1em"> | |
67 | <tr> | |
68 | <th colspan="2">Groupes et institutions X</th> | |
69 | </tr> | |
70 | <tr> | |
71 | <td colspan="2"> | |
72 | <p> | |
73 | La gestion des annuaires des groupes X est réalisée grâce à | |
74 | <a href="http://www.polytechnique.net">Polytechnique.net</a>. Pour faire apparaître un groupe sur ta fiche | |
de1b96b6 | 75 | il faut que tu sois inscrit dans ce groupe sur <a href="http://www.polytechnique.net">Polytechnique.net</a>. |
b37aacd9 | 76 | </p> |
57b73804 FB |
77 | </td> |
78 | </tr> | |
b37aacd9 | 79 | <tr> |
b37aacd9 FB |
80 | <td colspan="2"> |
81 | <p> | |
82 | Tu peux demander ton inscription aux groupes X qui t'intéressent. Voici la liste de ceux disponibles actuellement | |
83 | sur Polytechnique.net et qui autorisent les demandes d'inscription : | |
84 | </p> | |
85 | </td> | |
e60e10d7 FB |
86 | </tr> |
87 | <tr> | |
57b73804 | 88 | <td> |
b37aacd9 FB |
89 | {assign var=groupcat value=""} |
90 | {assign var=ingroup value=false} | |
6505acf7 | 91 | <select name="groupesx_sub" onchange="updateGroupSubLink()"> |
b37aacd9 FB |
92 | {iterate from=$listgroups item=group} |
93 | {if $group.dom neq $groupcat} | |
94 | {if $ingroup} | |
95 | </optgroup> | |
96 | {assign var=ingroup value=false} | |
97 | {/if} | |
98 | {if $group.dom} | |
99 | <optgroup label="{$group.dom}"> | |
100 | {assign var=ingroup value=true} | |
101 | {assign var=groupcat value="`$group.dom`"} | |
102 | {/if} | |
103 | {/if} | |
104 | <option value="{if $group.sub_url}{$group.sub_url}{else}http://www.polytechnique.net/{$group.diminutif}/subscribe{/if}"> | |
105 | {$group.nom} | |
106 | </option> | |
107 | {/iterate} | |
108 | {if $ingroup}</optgroup>{/if} | |
109 | </select> | |
110 | </td> | |
111 | <td style="text-align: right"> | |
112 | <a href="http://www.polytechnique.net" id="groupesx_sub"> | |
113 | {icon name="add" title="Demander ton inscription"} Demander ton inscription | |
114 | </a> | |
92412b28 FB |
115 | </td> |
116 | </tr> | |
e60e10d7 FB |
117 | {if $mygroups->total()} |
118 | <tr class="pair"> | |
e8439508 | 119 | <td colspan="2">Tu es actuellement dans les groupes suivants :</td> |
e60e10d7 FB |
120 | </tr> |
121 | {/if} | |
122 | {assign var=grp_admin value=false} | |
123 | {assign var=grp_public value=false} | |
124 | {iterate from=$mygroups item=group} | |
125 | <tr class="pair"> | |
126 | <td class="titre"> | |
127 | {if $group.pub neq 'public'} | |
128 | {icon name=error title="Liste de membres a accès restreint"} | |
129 | {assign var=grp_public value=true} | |
130 | {/if} | |
131 | {if $group.perms eq 'admin'} | |
132 | {icon name=wrench title="Tu es administrateur du groupe"} | |
133 | {assign var=grp_admin value=true} | |
134 | {/if} | |
135 | {if $group.site}<a href="{$group.site}">{else}<a href="http://www.polytechnique.net/{$group.diminutif}">{/if} | |
136 | {$group.nom} | |
137 | </a> | |
138 | </td> | |
139 | <td style="text-align: right; width: 30%"> | |
140 | <a href="{if $group.unsub_url}{$group.unsub_url}{else}http://www.polytechnique.net/{$group.diminutif}/unsubscribe{/if}"> | |
141 | {icon name=cross title="Demander désinscription"} Demander ta désinscription | |
142 | </a> | |
143 | </td> | |
144 | </tr> | |
145 | {/iterate} | |
146 | {if $grp_admin || $grp_public} | |
147 | <tr class="pair"> | |
148 | <td colspan="2" class="smaller"> | |
149 | <div class="titre">Signification des symboles :</div> | |
150 | {if $grp_public}{icon name=error} L'annuaire du groupe est à visibilité restreinte et ce groupe n'apparaîtra pas sur ta | |
9f3c170a | 151 | fiche.{/if} |
e60e10d7 | 152 | {if $grp_public && $grp_admin}<br />{/if} |
9f3c170a | 153 | {if $grp_admin}{icon name=wrench} Tu es administrateur du groupe.{/if} |
e60e10d7 FB |
154 | </td> |
155 | </tr> | |
156 | {/if} | |
92412b28 FB |
157 | </table> |
158 | ||
a7de4ef7 | 159 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |