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