0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
5ddeb07c |
3 | {* Copyright (C) 2003-2007 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 | |
1f7c3690 |
23 | <h1>Gestion des homonymes</h1> |
0337d704 |
24 | |
25 | {if $op eq 'mail'} |
a7de4ef7 |
26 | <p class="erreur">mail envoyé à {$forlife}</p> |
0337d704 |
27 | {elseif $op eq 'correct'} |
a7de4ef7 |
28 | <p class="erreur">mail envoyé à {$forlife}, alias supprimé</p> |
0337d704 |
29 | {/if} |
30 | |
31 | {if $op eq 'list' || $op eq 'mail' || $op eq 'correct'} |
32 | |
33 | <p> |
a7de4ef7 |
34 | Les utilisateurs signalés en rouge sont ceux qui conservent actuellement |
35 | l'alias prenom.nom et empêchent donc la mise en place du robot détrompeur. |
0337d704 |
36 | </p> |
37 | |
38 | <table class="bicol"> |
39 | <tr> |
a7de4ef7 |
40 | <th>alias concerné</th> |
41 | <th>date de péremption de l'alias</th> |
0337d704 |
42 | <th>op</th> |
43 | </tr> |
44 | {foreach from=$hnymes key=login item=row} |
45 | <tr class="pair"> |
46 | <td colspan="3"> |
47 | <strong>{$login}</strong> |
48 | </td> |
49 | </tr> |
50 | {foreach from=$row item=user} |
51 | <tr class="impair"> |
52 | <td> |
53 | {if $user.type eq 'alias'} |
54 | <span class="erreur"><strong>{$user.forlife}</strong></span> |
55 | {else} |
56 | {$user.forlife} |
57 | {/if} |
58 | </td> |
59 | <td>{$user.expire|date_format}</td> |
60 | <td> |
7b2413f6 |
61 | <a href="profile/{$user.forlife}" class='popup2'>fiche</a> |
f81d9dad |
62 | <a href="admin/user/{$user.forlife}">edit</a> |
0337d704 |
63 | {if $user.type eq 'alias'} |
86f0a6af |
64 | <a href="admin/homonyms/mail-conf/{$user.user_id}">mailer</a> |
65 | <a href="admin/homonyms/correct-conf/{$user.user_id}">corriger</a> |
0337d704 |
66 | {/if} |
67 | </td> |
68 | </tr> |
69 | {/foreach} |
70 | {/foreach} |
71 | </table> |
72 | |
73 | {elseif $op eq 'mail-conf'} |
74 | |
86f0a6af |
75 | <form method="post" action="admin/homonyms/mail/{$target}"> |
0337d704 |
76 | <table class="bicol"> |
77 | <tr> |
a7de4ef7 |
78 | <th>Envoyer un mail pour prévenir l'utilisateur</th> |
0337d704 |
79 | </tr> |
80 | <tr> |
81 | <td> |
82 | <textarea cols="80" rows="20" name="mailbody"> |
83 | {$prenom}, |
84 | |
85 | |
a7de4ef7 |
86 | Comme nous t'en avons informé par mail il y a quelques temps, |
0337d704 |
87 | pour respecter nos engagements en terme d'adresses e-mail devinables, |
a7de4ef7 |
88 | tu te verras bientôt retirer l'alias {$loginbis}@polytechnique.org pour |
0337d704 |
89 | ne garder que {$forlife}@polytechnique.org. |
90 | |
a7de4ef7 |
91 | Toute personne qui écrira à {$loginbis}@polytechnique.org recevra la |
92 | réponse d'un robot qui l'informera que {$loginbis}@polytechnique.org |
0337d704 |
93 | est ambigu pour des raisons d'homonymie et signalera ton email exact. |
94 | |
a7de4ef7 |
95 | L'équipe Polytechnique.org |
7da8ef90 |
96 | {#globals.baseurl#} |
0337d704 |
97 | </textarea> |
98 | </td> |
99 | </tr> |
100 | <tr> |
101 | <td> |
0337d704 |
102 | <input type="submit" value="Envoyer" /> |
103 | </td> |
104 | </tr> |
105 | </table> |
106 | </form> |
107 | |
108 | {elseif $op eq 'correct-conf'} |
109 | |
86f0a6af |
110 | <form method="post" action="admin/homonyms/correct/{$target}"> |
0337d704 |
111 | <table class="bicol"> |
112 | <tr> |
113 | <th>Mettre en place le robot {$loginbis}@polytechnique.org</th> |
114 | </tr> |
115 | <tr> |
116 | <td> |
117 | <textarea cols="80" rows="20" name="mailbody"> |
118 | {$prenom}, |
7da8ef90 |
119 | |
a7de4ef7 |
120 | Comme nous t'en avons informé par mail il y a quelques temps, |
121 | nous t'avons retiré de façon définitive l'adresse |
0337d704 |
122 | {$loginbis}@polytechnique.org. |
123 | |
a7de4ef7 |
124 | Toute personne qui écrit à {$loginbis}@polytechnique.org reçoit la |
125 | réponse d'un robot qui l'informe que {$loginbis}@polytechnique.org |
d7b2cecc |
126 | est ambigu pour des raisons d'homonymie et indique ton email exact. |
0337d704 |
127 | |
a7de4ef7 |
128 | Tu peux faire l'essai toi-même en écrivant à {$loginbis}@polytechnique.org. |
0337d704 |
129 | |
a7de4ef7 |
130 | L'équipe Polytechnique.org |
7da8ef90 |
131 | {#globals.baseurl#} |
0337d704 |
132 | </textarea> |
133 | </td> |
134 | </tr> |
135 | <tr> |
136 | <td> |
0337d704 |
137 | <input type="submit" value="Envoyer et corriger" /> |
138 | </td> |
139 | </tr> |
140 | </table> |
141 | </form> |
142 | |
143 | {/if} |
144 | |
145 | |
a7de4ef7 |
146 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |