Enables emails for other types of users.
[platal.git] / templates / admin / homonymes.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2011 Polytechnique.org                             *}
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
23 <h1>Gestion des homonymes</h1>
24
25 {if $op eq 'list' || $op eq 'mail' || $op eq 'correct'}
26
27 {if $homonyms_to_fix|@count}
28 <p>
29   Liste des homonymies à corriger, celles en rouge devraient déjà être traitées.
30 </p>
31
32 <table class="bicol">
33   <tr>
34     <th>alias concerné</th>
35     <th>date de péremption de l'alias</th>
36     <th>actions</th>
37   </tr>
38   {foreach from=$homonyms_to_fix key=login item=row}
39   <tr class="pair">
40     <td>
41       {if $row.0.urgent}
42       <span class="erreur"><strong>{$login}</strong></span>
43       {else}
44       <strong>{$login}</strong>
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>
51     </td>
52   </tr>
53   {foreach from=$row item=user}
54   <tr class="impair">
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>
60     </td>
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>
87     <td>
88       <a href="profile/{$user.forlife}" class='popup2'>fiche</a>
89       <a href="admin/user/{$user.forlife}">edit</a>
90     </td>
91   </tr>
92   {/foreach}
93   {/foreach}
94 </table>
95
96 {elseif $op eq 'mail-conf'}
97
98 <form method="post" action="admin/homonyms/mail/{$target}">
99   {xsrf_token_field}
100   <table class="bicol">
101     <tr>
102       <th>Envoyer un email pour prévenir l'utilisateur</th>
103     </tr>
104     <tr>
105       <td>
106         <textarea cols="80" rows="20" name="mailbody">
107 {$user->displayName()},
108
109
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,
112 tu te verras bientôt retirer l'alias {$loginbis}@{$user->mainEmailDomain()} pour
113 ne garder que {$user->forlifeEmail()}.
114
115 Toute personne qui écrira à {$loginbis}@{$user->mainEmailDomain()} recevra la
116 réponse d'un robot qui l'informera que {$loginbis}@{$user->mainEmailDomain()}
117 est ambigu pour des raisons d'homonymie et signalera ton email exact.
118
119 L'équipe Polytechnique.org
120 {#globals.baseurl#}
121         </textarea>
122       </td>
123     </tr>
124     <tr>
125       <td>
126         <input type="submit" value="Envoyer" />
127       </td>
128     </tr>
129   </table>
130 </form>
131
132 {elseif $op eq 'correct-conf'}
133
134 <form method="post" action="admin/homonyms/correct/{$target}">
135   {xsrf_token_field}
136   <table class="bicol">
137     <tr>
138       <th>Mettre en place le robot {$loginbis}@{$user->mainEmailDomain()}</th>
139     </tr>
140     <tr>
141       <td>
142         <textarea cols="80" rows="20" name="mailbody">
143 {$user->displayName()},
144
145 Comme nous t'en avons informé par email il y a quelques temps,
146 nous t'avons retiré de façon définitive l'adresse
147 {$loginbis}@{$user->mainEmailDomain()}.
148
149 Toute personne qui écrit à {$loginbis}@{$user->mainEmailDomain()} reçoit la
150 réponse d'un robot qui l'informe que {$loginbis}@{$user->mainEmailDomain()}
151 est ambigu pour des raisons d'homonymie et indique ton email exact.
152
153 Tu peux faire l'essai toi-même en écrivant à {$loginbis}@{$user->mainEmailDomain()}.
154
155 L'équipe Polytechnique.org
156 {#globals.baseurl#}
157         </textarea>
158       </td>
159     </tr>
160     <tr>
161       <td>
162         <input type="submit" value="Envoyer et corriger" />
163       </td>
164     </tr>
165   </table>
166 </form>
167
168 {/if}
169
170
171 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}