Merge branch 'master' into fusionax
[platal.git] / templates / googleapps / admin.user.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2008 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>Compte Google Apps</h1>
24
25 {if $account}
26 {assign var=a value=$account}
27 <table class="bicol">
28   <col width="50%" />
29   <col width="50%" />
30   <tr>
31     <th colspan="2" style="text-align: left">
32       <div style="float: left; text-align: left">
33         Compte = <a href="admin/user/{$a->g_account_name}">{$a->g_account_name}</a>
34       </div>
35       <div style="float: right; text-align: right">
36         Google id = {$a->g_account_id}<br />
37         Plat/al id = {$user}
38       </div>
39     </th>
40   </tr>
41
42   <tr class="impair">
43     <td class="titre">Statut du compte</td>
44     <td>
45       <strong>{$a->g_status}</strong>
46       {if $admin_account}<br /><strong>Compte administrateur de Google Apps</strong>{/if}
47     </td>
48   </tr>
49   {if $a->suspended()}
50   <tr class="impair">
51     <td class="titre">Raison de suspension</td><td>{$a->g_suspension}</td>
52   </tr>
53   {/if}
54   <tr class="impair">
55     <td class="titre">Mots de passes synchronisés</td>
56     <td>
57       {if $a->sync_password}
58         oui (<a href="admin/googleapps/user/{$a->g_account_name}/forcesync">lancer une synchronisation</a>)
59       {else}non{/if}
60     </td>
61   </tr>
62   <tr class="impair">
63     <td class="titre">Redirection des mails</td><td>{if $googleapps_storage}activée{else}désactivee{/if}</td>
64   </tr>
65
66   <tr class="pair">
67     <td class="titre">Date de création</td><td>{$a->r_creation|date_format:"%Y-%m-%d"}</td>
68   </tr>
69   <tr class="pair">
70     <td class="titre">Dernière connexion</td><td>{$a->r_last_login|date_format:"%Y-%m-%d"}</td>
71   </tr>
72   <tr class="pair">
73     <td class="titre">Dernière utilisation du webmail</td><td>{$a->r_last_webmail|date_format:"%Y-%m-%d"}</td>
74   </tr>
75   <tr class="pair">
76     <td class="titre">Utilisation du quota mail</td><td>{$a->r_disk_usage/1024/1024|string_format:"%.2f"}MB</td>
77   </tr>
78 </table><br />
79
80 <table class="bicol" style="text-align: center">
81   <tr>
82     <th colspan="4" style="text-align: left">Requêtes en attente</th>
83   </tr>
84   <tr>
85     <th>qid</th>
86     <th>date</th>
87     <th>statut</th>
88     <th>type</th>
89   </tr>
90   {iterate from=$requests item=r}
91   <tr class="{cycle values="impair,pair"}">
92     <td><a href="admin/googleapps/job/{$r.q_id}">{$r.q_id}</a></td>
93     <td>{$r.p_entry_date|date_format:"%Y-%m-%d %H:%M"}</td>
94     <td>{$r.p_status}</td>
95     <td>{$r.j_type}</td>
96   </tr>
97   {/iterate}
98 </table>
99 {else}
100 <p><strong>Aucun utilisateur n'a été trouvé.</strong></p>
101 {/if}
102
103 <p>Retourner à la <a href="admin/googleapps">page d'administration de Google Apps</a>.</p>
104
105 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}