Adapts homonyms issues to new mail chain.
[platal.git] / templates / admin / homonymes.tpl
CommitLineData
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>&nbsp;&nbsp;{$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>&nbsp;&nbsp;{$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
110Comme nous t'en avons informé par email il y a quelques temps,
111pour respecter nos engagements en terme d'adresses email devinables,
d7dd70be 112tu te verras bientôt retirer l'alias {$loginbis}@{#globals.mail.domain#} pour
191711d5 113ne garder que {$user->forlifeEmail()}.
0337d704 114
d7dd70be 115Toute personne qui écrira à {$loginbis}@{#globals.mail.domain#} recevra la
116réponse d'un robot qui l'informera que {$loginbis}@{#globals.mail.domain#}
0337d704 117est ambigu pour des raisons d'homonymie et signalera ton email exact.
118
a7de4ef7 119L'é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>
d7dd70be 138 <th>Mettre en place le robot {$loginbis}@{#globals.mail.domain#}</th>
0337d704 139 </tr>
140 <tr>
141 <td>
142 <textarea cols="80" rows="20" name="mailbody">
191711d5 143{$user->displayName()},
7da8ef90 144
faefdbb7 145Comme nous t'en avons informé par email il y a quelques temps,
a7de4ef7 146nous t'avons retiré de façon définitive l'adresse
d7dd70be 147{$loginbis}@{#globals.mail.domain#}.
0337d704 148
d7dd70be 149Toute personne qui écrit à {$loginbis}@{#globals.mail.domain#} reçoit la
150réponse d'un robot qui l'informe que {$loginbis}@{#globals.mail.domain#}
d7b2cecc 151est ambigu pour des raisons d'homonymie et indique ton email exact.
0337d704 152
d7dd70be 153Tu peux faire l'essai toi-même en écrivant à {$loginbis}@{#globals.mail.domain#}.
0337d704 154
a7de4ef7 155L'é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: *}