Removes table into table.
[platal.git] / templates / core / password_prompt.tpl
index 246f4b4..a7e3a6b 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -20,7 +20,7 @@
 {*                                                                        *}
 {**************************************************************************}
 
-{if $referer || $platal->pl_self() neq 'login'}
+{if t($referer) || $platal->pl_self() neq 'login'}
 <h1>
   Accès restreint
 </h1>
     </tr>
     <tr style="white-space: nowrap">
       <td class="titre">
-        Adresse email&nbsp;:
+        Identifiant&nbsp;:
       </td>
       <td>
-        <input type="text" name="username" size="20" maxlength="50" value="{insert name="getUserName"}" />&nbsp;@&nbsp;<select name="domain">
-          <option value="login">{#globals.mail.domain#} / {#globals.mail.domain2#}</option>
-          <option value="alias" {if $smarty.cookies.ORGdomain eq alias}selected="selected"{/if}>
-            {#globals.mail.alias_dom#} / {#globals.mail.alias_dom2#}
+        <input type="text" name="username" size="20" maxlength="50" value="{insert name="getUserName"}" />
+        <select name="domain">
+          <option value="login">@alumni. {#globals.mail.domain#} / {#globals.mail.domain2#}</option>
+          <option value="alias" {if t($smarty.cookies.ORGdomain) && $smarty.cookies.ORGdomain eq "alias"}selected="selected"{/if}>
+            @ {#globals.mail.alias_dom#} / {#globals.mail.alias_dom2#}
+          </option>
+          <option value="ax" {if t($smarty.cookies.ORGdomain) && $smarty.cookies.ORGdomain eq "ax"}selected="selected"{/if}>
+            Identifiant
           </option>
         </select>
       </td>
     </tr>
     <tr>
       <td colspan="2">
-      <table width="100%"><tr>
-      <td>
-        <a href="recovery">Mot de passe perdu&nbsp;?</a>
-      </td>
-      <td class="right">
-        <input type="submit" name="submitbtn" value="Me connecter" />
-      </td>
-      </tr></table>
+        <a href="recovery" style="float: left">Mot de passe perdu&nbsp;?</a>
+        <input type="submit" name="submitbtn" value="Me connecter" style="float: right" />
       </td>
     </tr>
   </table>
   en clair entre chez toi et Polytechnique.org, ce qui assure une confidentialité maximale.
   {else}
   {icon name=lock_open} Tu utilises actuellement une connexion HTTP non sécurisée. Toutes les informations
-  (<strong>excepté le mot de passe de connexion au site</strong>) circulent en clair entre chez toi et 
+  (<strong>excepté le mot de passe de connexion au site</strong>) circulent en clair entre chez toi et
   Polytechnique.org. Tu peux basculer sur une connexion sécurisée en cliquant sur le lien
   <div class="center">
   <a href="https://{#globals.core.secure_domain#}{$smarty.server.REQUEST_URI}">