1 {**************************************************************************}
3 {* Copyright (C) 2003-2014 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
23 <h1>Gestion des homonymes</h1>
25 {if $op eq 'list' || $op eq 'mail' || $op eq 'correct'}
27 {if $homonyms_to_fix|@count}
29 Liste des homonymies à corriger, celles en rouge devraient déjà être traitées.<br />
31 Dans un premier temps, envoyer un mail. Ensuite (typiquement une semaine plus tard), cliquer sur "corriger".
36 <th>alias concerné</th>
37 <th>date de péremption de l'alias</th>
40 {foreach from=$homonyms_to_fix key=login item=row}
44 <span class="erreur"><strong>{$login}</strong></span>
46 <strong>{$login}</strong>
49 <td>{$row.0.expire|date_format}</td>
51 <a href="admin/homonyms/mail-conf/{$row.0.uid}">envoyer un email</a>
52 <a href="admin/homonyms/correct-conf/{$row.0.uid}">corriger</a>
55 {foreach from=$row item=user}
57 <td> {$user.forlife}</td>
60 <a href="profile/{$user.forlife}" class='popup2'>fiche</a>
61 <a href="admin/user/{$user.forlife}">edit</a>
70 Liste des homonymies déjà corrigées.
75 <th>alias concerné</th>
76 <th>alias prémimé depuis</th>
79 {foreach from=$homonyms key=login item=row}
81 <td><strong>{$login}</strong></td>
82 <td>{if $row.0.expire eq '0000-00-00'}---{else}{$row.0.expire|date_format}{/if}</td>
85 {foreach from=$row item=user}
87 <td> {$user.forlife}</td>
90 <a href="profile/{$user.forlife}" class='popup2'>fiche</a>
91 <a href="admin/user/{$user.forlife}">edit</a>
98 {elseif $op eq 'mail-conf'}
100 <form method="post" action="admin/homonyms/mail/{$target}">
102 <table class="bicol">
104 <th>Envoyer un email pour prévenir l'utilisateur</th>
108 <textarea cols="80" rows="20" name="mailbody">{$warning_mail_text}</textarea>
113 <input type="submit" value="Envoyer" />
119 {elseif $op eq 'correct-conf'}
121 <form method="post" action="admin/homonyms/correct/{$target}">
123 <table class="bicol">
125 <th>Mettre en place le robot {$loginbis}@{$user->mainEmailDomain()}</th>
129 <textarea cols="80" rows="20" name="mailbody">{$robot_mail_text}</textarea>
134 <input type="submit" value="Envoyer et corriger" />
143 {* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}