17639c76634b1b59c56e78deef0d1a6e67a213d3
[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">{$warning_mail_text}</textarea>
107       </td>
108     </tr>
109     <tr>
110       <td>
111         <input type="submit" value="Envoyer" />
112       </td>
113     </tr>
114   </table>
115 </form>
116
117 {elseif $op eq 'correct-conf'}
118
119 <form method="post" action="admin/homonyms/correct/{$target}">
120   {xsrf_token_field}
121   <table class="bicol">
122     <tr>
123       <th>Mettre en place le robot {$loginbis}@{$user->mainEmailDomain()}</th>
124     </tr>
125     <tr>
126       <td>
127         <textarea cols="80" rows="20" name="mailbody">{$robot_mail_text}</textarea>
128       </td>
129     </tr>
130     <tr>
131       <td>
132         <input type="submit" value="Envoyer et corriger" />
133       </td>
134     </tr>
135   </table>
136 </form>
137
138 {/if}
139
140
141 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}