common.content.tpl and common.devel.tpl have been moved to the core.
[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="256" />
54         &nbsp;<a href="recovery">Perdu&nbsp;?</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         <label><input type="checkbox" name="remember" checked="checked" />
64         Garder l'accès aux services après déconnexion.</label>
65       </td>
66     </tr>
67   </table>
68 </form>
69 <br />
70 {if $smarty.request.response}<!-- failed login code -->
71 {include core=triggers.tpl text="Erreur d'identification. Essaie à nouveau !" type="errors"}
72 {/if}
73
74 <!-- Set up the form with the challenge value and an empty reply value -->
75 <form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub">
76   <div>
77     {xsrf_token_field}
78     <input type="hidden" name="challenge" value="{$smarty.session.challenge}" />
79     <input type="hidden" name="username"  value="{$smarty.cookies.ORGuid}" />
80     <input type="hidden" name="xorpass"  value="" />
81     <input type="hidden" name="remember"  value="" />
82     <input type="hidden" name="response"  value="" />
83   </div>
84 </form>
85
86 {literal}
87 <script type="text/javascript">
88   <!--
89   // Activate the appropriate input form field.
90   document.forms.login.password.focus();
91   // -->
92 </script>
93 {/literal}
94
95 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}