5d4921d7fa994b16913016ed35e687231983d7c0
[platal.git] / templates / core / password_prompt_logged.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2014 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>{icon name=error} Page sécurisée</h1>
24
25 <div>
26   La page que tu as demandée est classée comme sensible. Il est nécessaire de taper ton mot de passe
27   pour y accéder, même avec l'accès permanent activé.
28 </div>
29 <br />
30
31 <form action="{$smarty.server.REQUEST_URI}" method="post" id="login" onsubmit='doChallengeResponseLogged(); return false;'>
32   <table class="bicol" cellpadding="4" summary="Formulaire de login">
33     <tr>
34       <td class="titre">
35         Nom d'utilisateur&nbsp;:
36       </td>
37       <td>{$smarty.session.hruid}</td>
38       <td class="right" rowspan="3" style="vertical-align: middle">
39         <input  type="submit" name="submitbtn" value="Envoyer" />
40       </td>
41     </tr>
42     <tr>
43       <td class="titre">
44         Mot de passe&nbsp;:
45       </td>
46       <td>
47         <input type="password" name="password" size="10" maxlength="256" />
48         &nbsp;<a href="recovery">Perdu&nbsp;?</a>
49       </td>
50     </tr>
51     <tr>
52       <td {popup caption='Connexion permanente' width='300' text='Décoche cette case pour que le site oublie ce navigateur.<br />
53         Il est conseillé de décocher la case si cette machine n\'est pas <b>strictement</b> personnelle'} colspan="2">
54         <label><input type="checkbox" name="remember" checked="checked" />
55         Garder l'accès aux services après déconnexion.</label>
56       </td>
57     </tr>
58   </table>
59 </form>
60 <br />
61
62 <!-- Set up the form with the challenge value and an empty reply value -->
63 <form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub">
64   <div>
65     {xsrf_token_field}
66     <input type="hidden" name="challenge" value="{$smarty.session.challenge}" />
67     <input type="hidden" name="username"  value="{$smarty.session.uid}" />
68     <input type="hidden" name="remember"  value="" />
69     <input type="hidden" name="response"  value="" />
70   </div>
71 </form>
72
73 {literal}
74 <script type="text/javascript">
75   <!--
76   // Activate the appropriate input form field.
77   document.forms.login.password.focus();
78   // -->
79 </script>
80 {/literal}
81
82 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}