Happy New Year!
[platal.git] / templates / admin / profile.tpl
CommitLineData
ee044b9c
SJ
1{**************************************************************************}
2{* *}
5e1513f6 3{* Copyright (C) 2003-2011 Polytechnique.org *}
ee044b9c
SJ
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>Modifications récentes de profil</h1>
24
25{if $updates->total() > 0}
26<script type="text/javascript">//<![CDATA[
27{literal}
28 function toggleSelection()
29 {
30 var checked = $(':checkbox.updates:checked');
31 var unchecked = $(':checkbox.updates:not(:checked)');
32 checked.removeAttr('checked');
33 unchecked.attr('checked', 'checked');
34 }
35{/literal}
36//]]></script>
37
38<form action="admin/profile" method="post">
39 {xsrf_token_field}
40 <table class="bicol" summary="liste des modifications de profil récentes">
41 <tr>
42 <th>Nom</th>
43 <th>Éléments modifiés</th>
44 <th>Liens</th>
45 <th><a href="javascript:toggleSelection()">{icon name="arrow_refresh" title="Inverser la sélection"}</a></th>
46 </tr>
47 {iterate item=update from=$updates}
48 <tr class="{cycle values="impair,pair"}">
49 <td>{$update.directory_name}</td>
50 <td class="center">{$update.field|wordwrap:80:'<br />'}</td>
51 <td class="center">
52 <a href="profile/{$update.hrpid}" class="popup2">{icon name=user_suit title="Voir le profil"}</a>
53 <a href="profile/edit/{$update.hrpid}">{icon name=user_edit title="Éditer le profil"}</a>
54 </td>
55 <td class="center"><input type="checkbox" name="checked_{$update.pid}" class="updates" /></td>
56 </tr>
57 {/iterate}
58 </table>
59 <p class="center"><input type="submit" name="checked" value="Valider" /></p>
60</form>
61{else}
62<p>Il n'y a rien à vérifier.</p>
63{/if}
64
65{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}