Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
5e1513f6 | 3 | {* Copyright (C) 2003-2011 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 | |
0337d704 | 25 | {if $op eq 'list' || $op eq 'mail' || $op eq 'correct'} |
26 | ||
4371e993 | 27 | {if $homonyms_to_fix|@count} |
0337d704 | 28 | <p> |
4371e993 | 29 | Liste des homonymies à corriger, celles en rouge devraient déjà être traitées. |
0337d704 | 30 | </p> |
31 | ||
32 | <table class="bicol"> | |
33 | <tr> | |
a7de4ef7 | 34 | <th>alias concerné</th> |
35 | <th>date de péremption de l'alias</th> | |
4371e993 | 36 | <th>actions</th> |
0337d704 | 37 | </tr> |
4371e993 | 38 | {foreach from=$homonyms_to_fix key=login item=row} |
0337d704 | 39 | <tr class="pair"> |
4371e993 SJ |
40 | <td> |
41 | {if $row.0.urgent} | |
42 | <span class="erreur"><strong>{$login}</strong></span> | |
43 | {else} | |
0337d704 | 44 | <strong>{$login}</strong> |
4371e993 SJ |
45 | {/if} |
46 | </td> | |
47 | <td>{$row.0.expire|date_format}</td> | |
48 | <td> | |
49 | <a href="admin/homonyms/mail-conf/{$row.0.uid}">envoyer un email</a> | |
50 | <a href="admin/homonyms/correct-conf/{$row.0.uid}">corriger</a> | |
0337d704 | 51 | </td> |
52 | </tr> | |
53 | {foreach from=$row item=user} | |
54 | <tr class="impair"> | |
4371e993 SJ |
55 | <td> {$user.forlife}</td> |
56 | <td></td> | |
57 | <td> | |
58 | <a href="profile/{$user.forlife}" class='popup2'>fiche</a> | |
59 | <a href="admin/user/{$user.forlife}">edit</a> | |
0337d704 | 60 | </td> |
4371e993 SJ |
61 | </tr> |
62 | {/foreach} | |
63 | {/foreach} | |
64 | </table> | |
65 | {/if} | |
66 | ||
67 | <p> | |
68 | Liste des homonymies déjà corrigées. | |
69 | </p> | |
70 | ||
71 | <table class="bicol"> | |
72 | <tr> | |
73 | <th>alias concerné</th> | |
74 | <th>alias prémimé depuis</th> | |
75 | <th>actions</th> | |
76 | </tr> | |
77 | {foreach from=$homonyms key=login item=row} | |
78 | <tr class="pair"> | |
79 | <td><strong>{$login}</strong></td> | |
80 | <td>{if $row.0.expire eq '0000-00-00'}---{else}{$row.0.expire|date_format}{/if}</td> | |
81 | <td></td> | |
82 | </tr> | |
83 | {foreach from=$row item=user} | |
84 | <tr class="impair"> | |
85 | <td> {$user.forlife}</td> | |
86 | <td></td> | |
0337d704 | 87 | <td> |
7b2413f6 | 88 | <a href="profile/{$user.forlife}" class='popup2'>fiche</a> |
f81d9dad | 89 | <a href="admin/user/{$user.forlife}">edit</a> |
0337d704 | 90 | </td> |
91 | </tr> | |
92 | {/foreach} | |
93 | {/foreach} | |
94 | </table> | |
95 | ||
96 | {elseif $op eq 'mail-conf'} | |
97 | ||
86f0a6af | 98 | <form method="post" action="admin/homonyms/mail/{$target}"> |
839a80cf | 99 | {xsrf_token_field} |
0337d704 | 100 | <table class="bicol"> |
101 | <tr> | |
faefdbb7 | 102 | <th>Envoyer un email pour prévenir l'utilisateur</th> |
0337d704 | 103 | </tr> |
104 | <tr> | |
105 | <td> | |
106 | <textarea cols="80" rows="20" name="mailbody"> | |
191711d5 | 107 | {$user->displayName()}, |
0337d704 | 108 | |
109 | ||
faefdbb7 SJ |
110 | Comme nous t'en avons informé par email il y a quelques temps, |
111 | pour respecter nos engagements en terme d'adresses email devinables, | |
f036c896 | 112 | tu te verras bientôt retirer l'alias {$loginbis}@{$user->mainEmailDomain()} pour |
191711d5 | 113 | ne garder que {$user->forlifeEmail()}. |
0337d704 | 114 | |
f036c896 SJ |
115 | Toute personne qui écrira à {$loginbis}@{$user->mainEmailDomain()} recevra la |
116 | réponse d'un robot qui l'informera que {$loginbis}@{$user->mainEmailDomain()} | |
0337d704 | 117 | est ambigu pour des raisons d'homonymie et signalera ton email exact. |
118 | ||
a7de4ef7 | 119 | L'équipe Polytechnique.org |
7da8ef90 | 120 | {#globals.baseurl#} |
0337d704 | 121 | </textarea> |
122 | </td> | |
123 | </tr> | |
124 | <tr> | |
125 | <td> | |
0337d704 | 126 | <input type="submit" value="Envoyer" /> |
127 | </td> | |
128 | </tr> | |
129 | </table> | |
130 | </form> | |
131 | ||
132 | {elseif $op eq 'correct-conf'} | |
133 | ||
86f0a6af | 134 | <form method="post" action="admin/homonyms/correct/{$target}"> |
839a80cf | 135 | {xsrf_token_field} |
0337d704 | 136 | <table class="bicol"> |
137 | <tr> | |
f036c896 | 138 | <th>Mettre en place le robot {$loginbis}@{$user->mainEmailDomain()}</th> |
0337d704 | 139 | </tr> |
140 | <tr> | |
141 | <td> | |
142 | <textarea cols="80" rows="20" name="mailbody"> | |
191711d5 | 143 | {$user->displayName()}, |
7da8ef90 | 144 | |
faefdbb7 | 145 | Comme nous t'en avons informé par email il y a quelques temps, |
a7de4ef7 | 146 | nous t'avons retiré de façon définitive l'adresse |
f036c896 | 147 | {$loginbis}@{$user->mainEmailDomain()}. |
0337d704 | 148 | |
f036c896 SJ |
149 | Toute personne qui écrit à {$loginbis}@{$user->mainEmailDomain()} reçoit la |
150 | réponse d'un robot qui l'informe que {$loginbis}@{$user->mainEmailDomain()} | |
d7b2cecc | 151 | est ambigu pour des raisons d'homonymie et indique ton email exact. |
0337d704 | 152 | |
f036c896 | 153 | Tu peux faire l'essai toi-même en écrivant à {$loginbis}@{$user->mainEmailDomain()}. |
0337d704 | 154 | |
a7de4ef7 | 155 | L'équipe Polytechnique.org |
7da8ef90 | 156 | {#globals.baseurl#} |
0337d704 | 157 | </textarea> |
158 | </td> | |
159 | </tr> | |
160 | <tr> | |
161 | <td> | |
0337d704 | 162 | <input type="submit" value="Envoyer et corriger" /> |
163 | </td> | |
164 | </tr> | |
165 | </table> | |
166 | </form> | |
167 | ||
168 | {/if} | |
169 | ||
170 | ||
a7de4ef7 | 171 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |