Replaces normal spaces by non-breackable spaces when suitable.
[platal.git] / templates / googleapps / index.tpl
CommitLineData
bb0727ea
VZ
1{**************************************************************************}
2{* *}
8d84c630 3{* Copyright (C) 2003-2009 Polytechnique.org *}
bb0727ea
VZ
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
690c8519 23<h1>Ton compte Google Apps pour Polytechnique.org</h1>
bb0727ea 24
6bb2f79a 25<p>Polytechnique.org te fournit un compte <strong>Google Apps</strong> qui te permet de disposer
bb0727ea
VZ
26 des applications web de Google (<a href="http://mail.google.com/a/polytechnique.org/">GMail</a>,
27 <a href="http://www.google.com/calendar/hosted/polytechnique.org/">Google Calendar</a>,
28 <a href="http://docs.google.com/a/polytechnique.org/">Google Docs</a>, et bien d'autres)
690c8519 29 sur ton adresse Polytechnique.org habituelle (<a href="Xorg/GoogleApps">en savoir plus</a>).
bb0727ea
VZ
30</p>
31
32{if !$account->g_status}
690c8519 33{if !$has_password_sync}
6bb2f79a 34<p>Tu peux créer ce compte indépendant <em>Google Apps pour Polytechnique.org</em> en utilisant le
bb0727ea
VZ
35 formulaire ci-dessous.
36</p>
6bb2f79a 37<p><strong>Attention&nbsp;:</strong> ce compte Google Apps est hébergé par <em>Google</em>, et non
690c8519 38 par Polytechnique.org. Nous te déconseillons d'y conserver des informations
6bb2f79a 39 confidentielles ou sensibles&nbsp;!<br />&nbsp;
bb0727ea 40</p>
690c8519 41{/if}
bb0727ea
VZ
42
43<table class="bicol" id="create">
44 <col width="8%" />
45 <col width="92%" />
46 <tr>
690c8519 47 <th colspan="2">Création de ton compte Google Apps</th>
bb0727ea
VZ
48 </tr>
49
50 {if !$has_password_sync}
51 <form action="googleapps/create" method="get">
52 <tr class="impair">
6bb2f79a 53 <td colspan="2"><strong>Mot de passe du compte&nbsp;:</strong></td>
bb0727ea
VZ
54 </tr>
55 <tr class="impair">
56 <td style="text-align: center">
57 <input type="radio" name="password_sync" value="1" checked="checked" id="pwsync_true" />
58 </td>
59 <td>
690c8519 60 <label for="pwsync_true">Utiliser ton mot de passe Polytechnique.org pour ton compte Google Apps.</label><br />
bb0727ea 61 <span style="font-size: smaller; font-style: italic;">
690c8519
VZ
62 Les futurs changements de ton mot de passe seront répercutés sur ton compte Google Apps.
63 </span><br />
64 <span style="font-size: smaller; font-weight: bold;">
65 Réglage recommandé par Polytechnique.org.
bb0727ea
VZ
66 </span>
67 </td>
68 </tr>
69 <tr class="impair">
70 <td style="text-align: center">
71 <input type="radio" name="password_sync" value="0" id="pwsync_false" />
72 </td>
73 <td>
690c8519 74 <label for="pwsync_false">Utiliser un nouveau mot de passe pour ton compte Google Apps.</label>
bb0727ea
VZ
75 </td>
76 </tr>
77 <tr class="impair">
78 <td colspan="2" style="text-align: center">
79 <input type="submit" value="Continuer &gt;&gt;" />
80 </td>
81 </tr>
82 </form>
83 {else}
84 <tr class="impair">
6bb2f79a 85 <td colspan="2"><strong>Mot de passe du compte&nbsp;:</strong></td>
bb0727ea
VZ
86 </tr>
87 {if $password_sync}
88 <tr class="impair">
89 <td></td>
90 <td>
91 Tu as choisi d'avoir le même mot de passe pour Google Apps et Polytechnique.org.<br />
92 Tu peux encore choisir d'utiliser des <a href="googleapps/create?password_sync=0">mots de passe différents</a>.
93 </td>
94 </tr>
95 {else}
96 <tr class="impair">
97 <td></td>
6bb2f79a 98 <td>Tu as choisi d'avoir un nouveau mot de passe pour ton compte Google Apps&nbsp;:</td>
bb0727ea
VZ
99 </tr>
100 <tr class="impair">
101 <td colspan="2">
102 <form action="#" method="post" id="changepass">
103 <table class="tinybicol">
104 <tr>
105 <td class="titre">Nouveau mot de passe</td>
106 <td><input type="password" name="nouveau" onfocus="document.forms.changepass2.password_sync[1].checked = true;" /></td>
107 </tr>
108 <tr>
109 <td class="titre">Vérification</td>
110 <td><input type="password" name="nouveau2" onfocus="document.forms.changepass2.password_sync[1].checked = true;" /></td>
111 </tr>
92029dcf
FB
112 <tr>
113 <td class="titre">Sécurité</td>
7b7d0970 114 <td>{checkpasswd prompt="nouveau" submit="create_account" text="Créer mon compte !"}</td>
92029dcf 115 </tr>
bb0727ea
VZ
116 </table>
117 </form>
118 </td>
119 </tr>
120 <tr class="impair">
121 <td></td>
122 <td>
123 Tu peux encore choisir d'<a href="googleapps/create?password_sync=1">avoir des mots de passes synchronisés</a>.
124 </td>
125 </tr>
126 {/if}
127
128 <form action="googleapps/create" method="post" id="changepass2">
e61326ed 129 {xsrf_token_field}
bb0727ea 130 <tr class="pair">
6bb2f79a 131 <td colspan="2"><strong>Redirection des emails&nbsp;:</strong></td>
bb0727ea
VZ
132 </tr>
133 <tr class="pair">
134 <td style="text-align: center">
135 <input type="radio" name="redirect_mails" value="1" checked="checked" id="redirection_true" />
136 </td>
137 <td>
690c8519 138 <label for="redirection_true">Ajouter une redirection de mes emails vers mon compte Google Apps.</label><br />
bb0727ea 139 <span style="font-size: smaller;">
690c8519 140 Tes <em>Polytechnique.org</em> seront redirigés vers ton nouveau webmail, en plus de tes redirections actuelles.<br /><br />
6bb2f79a 141 <strong>Attention&nbsp;: ton compte Google Apps est hébergé par <em>Google</em>.</strong><br />
690c8519
VZ
142 Si tu utilises tes adresses <em>Polytechnique.org</em> pour des communications confidentielles ou dans un cadre professionnel,
143 nous te déconseillons donc de rediriger tes emails vers Google Apps.
bb0727ea
VZ
144 </span>
145 </td>
146 </tr>
147 <tr class="pair">
690c8519
VZ
148 <td colspan="2" style="text-align: center">- ou -</td>
149 </tr>
150 <tr class="pair">
bb0727ea
VZ
151 <td style="text-align: center">
152 <input type="radio" name="redirect_mails" value="0" id="redirection_false" />
153 </td>
154 <td>
155 <label for="redirection_false">Ne <i>pas</i> rediriger mes emails vers mon compte Google Apps.</label><br />
156 <span style="font-size: smaller;">
690c8519
VZ
157 Tu ne pourras pas lire tes emails dans ton nouveau webmail Google Apps.<br />
158 <strong>Ce réglage n'est pas recommandé par Polytechnique.org.</strong>
bb0727ea
VZ
159 </span>
160 </td>
161 </tr>
162
163 <tr class="impair">
87f8bf5a 164 <td colspan="2"><b>Création du compte&nbsp;:</b></td>
690c8519
VZ
165 </tr>
166 <tr class="impair">
167 <td></td>
87f8bf5a 168 <td>La mise en place du compte Google Apps prend quelques minutes. Tu recevras un email explicatif dès l'opération terminée.</td>
690c8519
VZ
169 </tr>
170 <tr class="impair">
bb0727ea
VZ
171 <td colspan="2" style="text-align:center">
172 <input type="hidden" name="password_sync" value="{$password_sync}" />
173 {if $password_sync}
174 <input type="submit" value="Créer mon compte !" />
175 {else}
176 <input type="hidden" name="response2" value="" />
92029dcf 177 <input type="submit" name="create_account" value="Créer mon compte !" onclick="EnCryptedResponse(); return false;" />
bb0727ea
VZ
178 {/if}
179 </td>
180 </tr>
181 </form>
182 {/if}
183</table>
184
185{elseif $account->g_status eq 'unprovisioned' or $account->pending_create}
186<br />
187<table class="bicol" id="status">
188 <tr>
189 <th>État de ton compte</th>
190 </tr>
191 <tr class="impair">
192 <td>
193 Ton compte Google Apps est en cours de création.<br />
194 Tu recevras un email dès que l'opération sera terminée.
195 </td>
196 </tr>
197</table>
198
199{elseif $account->pending_delete}
200<br />
201<table class="bicol" id="status">
202 <tr>
203 <th>État de ton compte</th>
204 </tr>
205 <tr class="impair">
206 <td>
207 Ton compte Google Apps est en cours de suppression.
208 </td>
209 </tr>
210</table>
211
f5c4bf30 212{elseif $account->suspended() or $account->pending_update_suspension}
bb0727ea
VZ
213<br />
214<table class="bicol" id="status">
215 <tr>
216 <th>État de ton compte</th>
217 </tr>
218 <tr class="impair">
219 <td>
220 Ton compte Google Apps est actuellement <b>désactivé</b>. Tu ne reçois donc plus aucun
221 message sur ce compte.
222 </td>
223 </tr>
f5c4bf30 224 {if $account->pending_validation_unsuspend or ($account->suspended() and $account->pending_update_suspension)}
bb0727ea
VZ
225 <tr class="pair">
226 <td>
227 La réactivation de ton compte est en attente de validation.<br />
228 Tu recevras un email dès que l'opération sera terminée.
229 </td>
230 </tr>
f5c4bf30 231 {elseif !$account->suspended() and $account->pending_update_suspension}
bb0727ea
VZ
232 <tr class="pair">
233 <td>
234 Les opérations de désactivation de ton compte Google Apps ne sont pas terminées, tu ne peux donc pas encore demander sa réactivation.
235 </td>
236 </tr>
237 {else}
238 {if $account->g_suspension}
239 <tr class="pair">
240 <td>
6bb2f79a 241 Ton compte est actuellement suspendu pour la raison suivante&nbsp;: <em>{$account->g_suspension}</em>.
bb0727ea
VZ
242 </td>
243 </tr>
244 {/if}
245 <tr class="impair">
246 <td>
247 La réactivation de ton compte est soumise à une validation manuelle par un administrateur de Polytechnique.org.
248 Ton compte réactivé contiendra toutes tes anciennes données.
249 <br /><br />
250 <div class="center">
251 <form action="googleapps/unsuspend" method="post">
252 <input type="hidden" name="redirect_mails" value="1" />
253 <input type="submit" name="unsuspend" value="Réactiver mon compte Google Apps et y rediriger mes emails" />
254 </form>
255 <br />
256 <form action="googleapps/unsuspend" method="post">
257 <input type="hidden" name="redirect_mails" value="0" />
258 <input type="submit" name="unsuspend" value="Réactiver mon compte Google Apps et ne pas y rediriger mes emails" />
259 </form>
260 </div><br />
261 Tu pourras toujours <a href="emails/redirect">changer la redirection de tes emails</a> plus tard.
262 </td>
263 </tr>
264 {/if}
265</table>
266
267{else}
6bb2f79a 268<p>Tu peux utiliser ces services&nbsp;:</p>
bb0727ea 269<ul>
6bb2f79a
SJ
270 <li>Soit en passant par la <a href="http://google.polytechnique.org/">la page d'accueil Google de Polytechnique.org</a>&nbsp;;</li>
271 <li>Soit en utilisant directement les différents services&nbsp;:
bb0727ea 272 <ul>
6bb2f79a
SJ
273 <li>Pour tes emails, sur le <a href="http://mail.google.com/a/polytechnique.org/">GMail de Polytechnique.org</a>&nbsp;;</li>
274 <li>Pour ton calendrier, sur <a href="http://www.google.com/calendar/hosted/polytechnique.org/">Google Calendar</a>&nbsp;;</li>
bb0727ea
VZ
275 <li>Pour tes documents, sur <a href="http://docs.google.com/a/polytechnique.org/">Google Docs</a>.</li>
276 </ul>
277 </li>
278</ul>
279
280<table class="bicol" id="status">
281 <tr>
fc6f30c0 282 <th colspan="2">État de ton compte</th>
bb0727ea
VZ
283 </tr>
284 <tr class="impair">
fc6f30c0 285 <td colspan="2">Ton compte <b>{$account->g_account_name}</b> existe{if $account->r_creation} depuis le {$account->r_creation|date_format:"%d/%m/%Y"}{/if}.</td>
bb0727ea
VZ
286 </tr>
287 {if $account->reporting_date and $account->r_disk_usage}
288 <tr class="pair">
fc6f30c0 289 <td colspan="2">Au {$account->reporting_date|date_format:"%d %B %Y"}, tu avais {$account->r_disk_usage/1024/1024|string_format:"%.1f"} Mo d'emails.</td>
bb0727ea
VZ
290 </tr>
291 {/if}
fc6f30c0 292 {if $redirect_active and $redirect_unique}
bb0727ea 293 <tr class="impair">
fc6f30c0
VZ
294 <td class="middle">{icon name=error}</td>
295 <td class="smaller">
faefdbb7 296 Ta seule adresse de redirection de tes emails est celle de ton compte Google Apps.<br />
bb0727ea
VZ
297 Si tu souhaites désactiver celui-ci, tu dois d'abord <a href="emails/redirect">ajouter une nouvelle adresse de redirection</a>.
298 </td>
fc6f30c0
VZ
299 </tr>
300 {else}
301 <tr class="impair">
302 <td colspan="2">
6bb2f79a 303 Si tu ne souhaites plus utiliser ton compte, tu peux le désactiver&nbsp;:<br /><br />
bb0727ea
VZ
304 <div class="center">
305 <form action="googleapps/suspend" method="post">
e61326ed 306 {xsrf_token_field}
bb0727ea
VZ
307 <input type="submit" name="suspend" value="Désactiver mon compte Google Apps" />
308 </form>
309 </div>
bb0727ea 310 </td>
bb0727ea 311 </tr>
fc6f30c0
VZ
312 <tr class="impair">
313 <td class="middle">{icon name=error}</td>
314 <td class="smaller">
315 Une fois ton compte désactivé, tu ne pourras plus accéder à tes emails sur Google Apps.
316 La réactivation est possible, mais nécessite d'être validée par un administrateur.
317 </td>
318 </tr>
319 {/if}
bb0727ea
VZ
320</table>
321<br />
322
323<table class="bicol" id="password">
324 <tr>
fc6f30c0 325 <th colspan="2">Ton mot de passe Google Apps</th>
bb0727ea
VZ
326 </tr>
327
328 {if $account->pending_update_password}
329 <tr class="pair">
fc6f30c0
VZ
330 <td class="middle">{icon name=error}</td>
331 <td><div class="erreur smaller">
bb0727ea
VZ
332 Ton mot de passe est en cours de changement.<br />
333 Tu pourras à nouveau le modifier d'ici quelques secondes.
334 </div></td>
335 </tr>
fc6f30c0 336
bb0727ea 337 {else}
fc6f30c0
VZ
338 <tr class="pair">
339 <td></td><td>
340 <form action="googleapps/password" method="post">
341 {xsrf_token_field}
342 <label>
343 <input type="radio" name="pwsync" value="sync" onchange="this.form.submit();"
344 {if $account->sync_password}checked="checked" {/if}/>
345 Utiliser le même mot de passe pour Polytechnique.org et Google Apps.</label><br />
346 <label>
347 <input type="radio" name="pwsync" value="nosync" onchange="this.form.submit();"
348 {if !$account->sync_password}checked="checked" {/if}/>
349 Utiliser deux mots de passes différents pour Polytechnique.org et Google Apps.</label><br />
350 </form>
bb0727ea
VZ
351 </td>
352 </tr>
353
fc6f30c0
VZ
354 {if $account->sync_password}
355 <tr class="impair"><td colspan="2">
356 Tes mots de passes Polytechnique.org et Google Apps sont identiques et synchronisés.
357 <div class="center"><a href="password">Changer ce mot de passe commun</a></div>
358 </td></tr>
359
bb0727ea 360 {else}
fc6f30c0
VZ
361 <tr class="impair"><td colspan="2">
362 Changer le mot de passe de ton compte Google Apps&nbsp;:<br /><br />
363 <form action="googleapps/password" method="post" id="changepass">
364 <table class="bicol">
365 <tr>
366 <td class="titre">Nouveau mot de passe</td>
367 <td><input type="password" name="nouveau" /></td>
368 </tr>
369 <tr>
370 <td class="titre">Vérification</td>
371 <td><input type="password" name="nouveau2" /></td>
372 </tr>
373 <tr>
374 <td class="titre">Sécurité</td>
375 <td>{checkpasswd prompt="nouveau" submit="create_account" text="Changer mon mot de passe"}</td>
376 </tr>
377 <tr>
378 <td></td>
379 <td><input type="submit" name="create_account" value="Changer" onclick="EnCryptedResponse(); return false;" /></td>
380 </tr>
381 </table>
382 </form>
383 <form action="googleapps/password" method="post" id="changepass2">
384 {xsrf_token_field}
385 <input type="hidden" name="response2" value="" />
386 </form><br />
387 Pour une sécurité optimale, ton mot de passe circule de manière sécurisée (https).
388 Il est chiffré irréversiblement sur nos serveurs, ainsi que sur ceux de Google.
389 </td></tr>
bb0727ea
VZ
390 {/if}
391 {/if}
392</table>
393<br />
394
395<table class="bicol" id="emails">
396 <tr>
397 <th>Redirection des emails vers Google Apps</th>
398 </tr>
399
400 <tr class="impair">
401 {if $redirect_active and !$redirect_unique}
690c8519 402 <td>Tes emails Polytechnique.org sont redirigés vers Google Apps, en plus de tes autres redirections.</td>
bb0727ea 403 {elseif $redirect_active}
690c8519 404 <td>Tes emails Polytechnique.org ne sont redirigés que vers Google Apps.</td>
bb0727ea 405 {else}
690c8519 406 <td>Tu ne reçois <em>pas</em> tes emails Polytechnique.org sur ton webmail Google Apps.</td>
bb0727ea
VZ
407 {/if}
408 </tr>
409 <tr class="pair">
faefdbb7 410 <td class="center"><a href="emails/redirect">Changer mes redirections email</a></td>
bb0727ea
VZ
411 </tr>
412</table>
413{/if}
414
415{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}