Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
179afa7f | 3 | {* Copyright (C) 2003-2008 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'} | |
faefdbb7 | 26 | <p class="erreur">email envoyé à {$forlife}</p> |
0337d704 | 27 | {elseif $op eq 'correct'} |
faefdbb7 | 28 | <p class="erreur">email 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'} |
faefdbb7 | 64 | <a href="admin/homonyms/mail-conf/{$user.user_id}">envoyer un email</a> |
86f0a6af | 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}"> |
839a80cf | 76 | {xsrf_token_field} |
0337d704 | 77 | <table class="bicol"> |
78 | <tr> | |
faefdbb7 | 79 | <th>Envoyer un email pour prévenir l'utilisateur</th> |
0337d704 | 80 | </tr> |
81 | <tr> | |
82 | <td> | |
83 | <textarea cols="80" rows="20" name="mailbody"> | |
84 | {$prenom}, | |
85 | ||
86 | ||
faefdbb7 SJ |
87 | Comme nous t'en avons informé par email il y a quelques temps, |
88 | pour respecter nos engagements en terme d'adresses email devinables, | |
d7dd70be | 89 | tu te verras bientôt retirer l'alias {$loginbis}@{#globals.mail.domain#} pour |
90 | ne garder que {$forlife}@{#globals.mail.domain#}. | |
0337d704 | 91 | |
d7dd70be | 92 | Toute personne qui écrira à {$loginbis}@{#globals.mail.domain#} recevra la |
93 | réponse d'un robot qui l'informera que {$loginbis}@{#globals.mail.domain#} | |
0337d704 | 94 | est ambigu pour des raisons d'homonymie et signalera ton email exact. |
95 | ||
a7de4ef7 | 96 | L'équipe Polytechnique.org |
7da8ef90 | 97 | {#globals.baseurl#} |
0337d704 | 98 | </textarea> |
99 | </td> | |
100 | </tr> | |
101 | <tr> | |
102 | <td> | |
0337d704 | 103 | <input type="submit" value="Envoyer" /> |
104 | </td> | |
105 | </tr> | |
106 | </table> | |
107 | </form> | |
108 | ||
109 | {elseif $op eq 'correct-conf'} | |
110 | ||
86f0a6af | 111 | <form method="post" action="admin/homonyms/correct/{$target}"> |
839a80cf | 112 | {xsrf_token_field} |
0337d704 | 113 | <table class="bicol"> |
114 | <tr> | |
d7dd70be | 115 | <th>Mettre en place le robot {$loginbis}@{#globals.mail.domain#}</th> |
0337d704 | 116 | </tr> |
117 | <tr> | |
118 | <td> | |
119 | <textarea cols="80" rows="20" name="mailbody"> | |
120 | {$prenom}, | |
7da8ef90 | 121 | |
faefdbb7 | 122 | Comme nous t'en avons informé par email il y a quelques temps, |
a7de4ef7 | 123 | nous t'avons retiré de façon définitive l'adresse |
d7dd70be | 124 | {$loginbis}@{#globals.mail.domain#}. |
0337d704 | 125 | |
d7dd70be | 126 | Toute personne qui écrit à {$loginbis}@{#globals.mail.domain#} reçoit la |
127 | réponse d'un robot qui l'informe que {$loginbis}@{#globals.mail.domain#} | |
d7b2cecc | 128 | est ambigu pour des raisons d'homonymie et indique ton email exact. |
0337d704 | 129 | |
d7dd70be | 130 | Tu peux faire l'essai toi-même en écrivant à {$loginbis}@{#globals.mail.domain#}. |
0337d704 | 131 | |
a7de4ef7 | 132 | L'équipe Polytechnique.org |
7da8ef90 | 133 | {#globals.baseurl#} |
0337d704 | 134 | </textarea> |
135 | </td> | |
136 | </tr> | |
137 | <tr> | |
138 | <td> | |
0337d704 | 139 | <input type="submit" value="Envoyer et corriger" /> |
140 | </td> | |
141 | </tr> | |
142 | </table> | |
143 | </form> | |
144 | ||
145 | {/if} | |
146 | ||
147 | ||
a7de4ef7 | 148 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |