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