Merge branch 'platal-0.9.16'
[platal.git] / templates / core / password_prompt_logged.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
24 <div class="center">
25   <table>
26     <tr>
27       <td>
28         {icon name=error}
29       </td>
30       <td>
31         <span class="smaller">
32           <strong>
33             Pour des raisons de <span class="erreur">sécurité</span>, il est obligatoire de taper ton mot de passe, même
34             avec l'accès permanent, pour certaines opérations sensibles.
35           </strong>
36         </span>
37       </td>
38       <td>
39         {icon name=error}
40       </td>
41     </tr>
42   </table>
43 </div>
44 <br />
45
46 <form action="{$smarty.server.REQUEST_URI}" method="post" id="login" onsubmit='doChallengeResponse(); return false;'>
47   <table class="tinybicol" cellpadding="4" summary="Formulaire de login">
48     <tr>
49       <td class="titre">
50         Mot de passe&nbsp;:
51       </td>
52       <td>
53         <input type="password" name="password" size="10" maxlength="10" />
54         &nbsp;<a href="recovery">Perdu ?</a>
55       </td>
56       <td class="right" rowspan="2" style="vertical-align: middle">
57         <input  type="submit" name="submitbtn" value="Envoyer" />
58       </td>
59     </tr>
60     <tr>
61       <td {popup caption='Connexion permanente' width='300' text='Décoche cette case pour que le site oublie ce navigateur.<br />
62         Il est conseillé de décocher la case si cette machine n\'est pas <b>strictement</b> personnelle'} colspan="2">
63         <input type="checkbox" name="remember" checked="checked" /> Garder l'accès aux services après déconnexion.
64       </td>
65     </tr>
66   </table>
67 </form>
68 <br />
69 {if $smarty.request.response}<!-- failed login code -->
70 <div class="erreur">
71   Erreur d'identification. Essaie à nouveau !
72 </div>
73 {/if}
74
75 <!-- Set up the form with the challenge value and an empty reply value -->
76 <form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub">
77   <div>
78     {xsrf_token_field}
79     <input type="hidden" name="challenge" value="{$smarty.session.challenge}" />
80     <input type="hidden" name="username"  value="{$smarty.cookies.ORGuid}" />
81     <input type="hidden" name="xorpass"  value="" />
82     <input type="hidden" name="remember"  value="" />
83     <input type="hidden" name="response"  value="" />
84   </div>
85 </form>
86
87 {literal}
88 <script type="text/javascript">
89   <!--
90   // Activate the appropriate input form field.
91   document.forms.login.password.focus();
92   // -->
93 </script>
94 {/literal}
95
96 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}