X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/3e0a2c257d49fb162da9c70d2f70194036235166..f53850f9b9d8071258091d66b4c781f2f4399d72:/skins/custom_generic/login_form.pt?ds=sidebyside diff --git a/skins/custom_generic/login_form.pt b/skins/custom_generic/login_form.pt index 3d3c4bb..09d9729 100644 --- a/skins/custom_generic/login_form.pt +++ b/skins/custom_generic/login_form.pt @@ -1,81 +1,66 @@ <html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal" + xmlns:i18n="http://xml.zope.org/namespaces/i18n" metal:use-macro="here/main_template/macros/master"> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8"/> </head> -<body> -<div metal:fill-slot="main_no_tabs" i18n:domain="cmf_default"> -<div class="Desktop"> -<h1 class="Desktop" i18n:translate="">Log in</h1> - -<form action="" method="post" tal:attributes="action string:${here/portal_url}/logged_in"> -<input type="hidden" name="noAjax" value="1" /> - -<!-- ****** Enable the automatic redirect ***** --> -<span tal:condition="exists: request/came_from"> - <input type="hidden" name="came_from" value="" - tal:attributes="value request/came_from" /> -</span> -<!-- ****** Enable the automatic redirect ***** --> -<input type="hidden" name="just_login" value="True" /> -<table class="FormLayout"> -<tr> - <td align="left" valign="top"> - <strong i18n:translate="user_name">Login</strong> + <body> + <div metal:fill-slot="main_no_tabs" i18n:domain="plinn"> + <div id="Desktop"> + <h1 i18n:translate="">Log in</h1> + <form action="" method="post" tal:attributes="action string:${here/portal_url}/logged_in"> + <input type="hidden" name="noAjax" value="1"/> + <!-- ****** Enable the automatic redirect ***** --> + <span tal:condition="exists: request/came_from"> + <input type="hidden" name="came_from" value="" tal:attributes="value request/came_from"/> + </span> + <!-- ****** Enable the automatic redirect ***** --> + <input type="hidden" name="just_login" value="True"/> + <table class="TwoColumnForm"> + <tr> + <th i18n:translate="user_name">Login</th> + <td> + <input type="text" name="__ac_name" size="20" value="" tal:attributes="value python: request.get('__ac_name') or ''"/> </td> - <td align="left" valign="top"> - <input type="text" name="__ac_name" size="20" value="" - tal:attributes="value python: request.get('__ac_name') or ''" /> - </td> -</tr> -<tr> - <td align="left" valign="top"> - <strong i18n:translate="">Password</strong> - </td> - <td align="left" valign="top"> - <input type="password" name="__ac_password" size="20" /> - </td> -</tr> - -<tr valign="top" align="left"> -<td></td> -<td><input type="checkbox" name="__ac_persistent" value="1" checked="checked" - id="cb_remember" /> -<label for="cb_remember" i18n:translate="">Remember my name.</label> -</td></tr> - -<tr> - <td align="left" valign="top"> - </td> - <td align="left" valign="top"> - <input type="submit" name="submit" value=" Login " - i18n:attributes="value" /> - </td> -</tr> - -</table> -</form> - -<p><a href="" - tal:attributes="href string:${here/portal_url}/mail_password_form" - i18n:translate="" - >Forgot your password?</a> -</p> - -<p i18n:translate="">Having trouble logging in? Make sure to enable cookies in - your web browser. -</p> -<p i18n:translate="">Don't forget to logout or exit your browser when you're - done. -</p> - -<p i18n:translate="">Setting the 'Remember my name' option will set a cookie - with your username, so that when you next log in, your user name will - already be filled in for you. -</p> -</div> -</div> -</body> + </tr> + <tr> + <th i18n:translate="">Password</th> + <td> + <input type="password" name="__ac_password" size="20"/> + </td> + </tr> + <tr> + <td><br/></td> + <td> + <input type="checkbox" name="__ac_persistent" value="1" checked="checked" id="cb_remember"/> + <label for="cb_remember" i18n:translate="">Remember my name.</label> + </td> + </tr> + <tr> + <td><br/></td> + <td> + <input type="submit" name="submit" value=" Login " i18n:attributes="value"/> + </td> + </tr> + </table> + </form> + <p> + <a href="" tal:attributes="href string:${here/portal_url}/request_password_reset_form" i18n:translate="">Forgot your login or password?</a> + </p> + <p i18n:translate=""> + Having trouble logging in? Make sure to enable cookies in your web + browser. + </p> + <p i18n:translate=""> + Don't forget to logout or exit your browser when you're done. + </p> + <p i18n:translate=""> + Setting the 'Remember my name' option will set a cookie with your + username, so that when you next log in, your user name will already be + filled in for you. + </p> + </div> + </div> + </body> </html> -