Fixes vim mode line.
[platal.git] / templates / admin / homonymes.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
c441aabe 3{* Copyright (C) 2003-2014 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>
c215b704
RB
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".
0337d704 32</p>
33
34<table class="bicol">
35 <tr>
a7de4ef7 36 <th>alias concerné</th>
37 <th>date de péremption de l'alias</th>
4371e993 38 <th>actions</th>
0337d704 39 </tr>
4371e993 40 {foreach from=$homonyms_to_fix key=login item=row}
0337d704 41 <tr class="pair">
4371e993
SJ
42 <td>
43 {if $row.0.urgent}
44 <span class="erreur"><strong>{$login}</strong></span>
45 {else}
0337d704 46 <strong>{$login}</strong>
4371e993
SJ
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>
0337d704 53 </td>
54 </tr>
55 {foreach from=$row item=user}
56 <tr class="impair">
4371e993
SJ
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>
0337d704 62 </td>
4371e993
SJ
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>
0337d704 89 <td>
7b2413f6 90 <a href="profile/{$user.forlife}" class='popup2'>fiche</a>
f81d9dad 91 <a href="admin/user/{$user.forlife}">edit</a>
0337d704 92 </td>
93 </tr>
94 {/foreach}
95 {/foreach}
96</table>
97
98{elseif $op eq 'mail-conf'}
99
86f0a6af 100<form method="post" action="admin/homonyms/mail/{$target}">
839a80cf 101 {xsrf_token_field}
0337d704 102 <table class="bicol">
103 <tr>
faefdbb7 104 <th>Envoyer un email pour prévenir l'utilisateur</th>
0337d704 105 </tr>
106 <tr>
107 <td>
da2fff38 108 <textarea cols="80" rows="20" name="mailbody">{$warning_mail_text}</textarea>
0337d704 109 </td>
110 </tr>
111 <tr>
112 <td>
0337d704 113 <input type="submit" value="Envoyer" />
114 </td>
115 </tr>
116 </table>
117</form>
118
119{elseif $op eq 'correct-conf'}
120
86f0a6af 121<form method="post" action="admin/homonyms/correct/{$target}">
839a80cf 122 {xsrf_token_field}
0337d704 123 <table class="bicol">
124 <tr>
f036c896 125 <th>Mettre en place le robot {$loginbis}@{$user->mainEmailDomain()}</th>
0337d704 126 </tr>
127 <tr>
128 <td>
da2fff38 129 <textarea cols="80" rows="20" name="mailbody">{$robot_mail_text}</textarea>
0337d704 130 </td>
131 </tr>
132 <tr>
133 <td>
0337d704 134 <input type="submit" value="Envoyer et corriger" />
135 </td>
136 </tr>
137 </table>
138</form>
139
140{/if}
141
142
448c8cdc 143{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}