23f5c9f6b8dad88dc2a2a192aeecccd590887ab8
[platal.git] / templates / admin / homonymes.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2014 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.<br />
30
31   Dans un premier temps, envoyer un mail. Ensuite (typiquement une semaine plus tard), cliquer sur "corriger".
32 </p>
33
34 <table class="bicol">
35   <tr>
36     <th>alias concerné</th>
37     <th>date de péremption de l'alias</th>
38     <th>actions</th>
39   </tr>
40   {foreach from=$homonyms_to_fix key=login item=row}
41   <tr class="pair">
42     <td>
43       {if $row.0.urgent}
44       <span class="erreur"><strong>{$login}</strong></span>
45       {else}
46       <strong>{$login}</strong>
47       {/if}
48     </td>
49     <td>{$row.0.expire|date_format}</td>
50     <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>
53     </td>
54   </tr>
55   {foreach from=$row item=user}
56   <tr class="impair">
57     <td>&nbsp;&nbsp;{$user.forlife}</td>
58     <td></td>
59     <td>
60       <a href="profile/{$user.forlife}" class='popup2'>fiche</a>
61       <a href="admin/user/{$user.forlife}">edit</a>
62     </td>
63   </tr>
64   {/foreach}
65   {/foreach}
66 </table>
67 {/if}
68
69 <p>
70   Liste des homonymies déjà corrigées.
71 </p>
72
73 <table class="bicol">
74   <tr>
75     <th>alias concerné</th>
76     <th>alias prémimé depuis</th>
77     <th>actions</th>
78   </tr>
79   {foreach from=$homonyms key=login item=row}
80   <tr class="pair">
81     <td><strong>{$login}</strong></td>
82     <td>{if $row.0.expire eq '0000-00-00'}---{else}{$row.0.expire|date_format}{/if}</td>
83     <td></td>
84   </tr>
85   {foreach from=$row item=user}
86   <tr class="impair">
87     <td>&nbsp;&nbsp;{$user.forlife}</td>
88     <td></td>
89     <td>
90       <a href="profile/{$user.forlife}" class='popup2'>fiche</a>
91       <a href="admin/user/{$user.forlife}">edit</a>
92     </td>
93   </tr>
94   {/foreach}
95   {/foreach}
96 </table>
97
98 {elseif $op eq 'mail-conf'}
99
100 <form method="post" action="admin/homonyms/mail/{$target}">
101   {xsrf_token_field}
102   <table class="bicol">
103     <tr>
104       <th>Envoyer un email pour prévenir l'utilisateur</th>
105     </tr>
106     <tr>
107       <td>
108         <textarea cols="80" rows="20" name="mailbody">{$warning_mail_text}</textarea>
109       </td>
110     </tr>
111     <tr>
112       <td>
113         <input type="submit" value="Envoyer" />
114       </td>
115     </tr>
116   </table>
117 </form>
118
119 {elseif $op eq 'correct-conf'}
120
121 <form method="post" action="admin/homonyms/correct/{$target}">
122   {xsrf_token_field}
123   <table class="bicol">
124     <tr>
125       <th>Mettre en place le robot {$loginbis}@{$user->mainEmailDomain()}</th>
126     </tr>
127     <tr>
128       <td>
129         <textarea cols="80" rows="20" name="mailbody">{$robot_mail_text}</textarea>
130       </td>
131     </tr>
132     <tr>
133       <td>
134         <input type="submit" value="Envoyer et corriger" />
135       </td>
136     </tr>
137   </table>
138 </form>
139
140 {/if}
141
142
143 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}