From: <psy...@us...> - 2009-02-14 15:45:04
|
Update of /cvsroot/frenchmozilla/bugzilla/template/fr/default/account/auth In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30568/template/fr/default/account/auth Modified Files: login-small.html.tmpl Log Message: Bug 476090: Allow users to log-in from toolbar. Index: login-small.html.tmpl =================================================================== RCS file: /cvsroot/frenchmozilla/bugzilla/template/fr/default/account/auth/login-small.html.tmpl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- login-small.html.tmpl 31 Mar 2008 18:57:58 -0000 1.4 +++ login-small.html.tmpl 14 Feb 2009 15:45:00 -0000 1.5 @@ -23,68 +23,45 @@ [%# Use the current script name. If an empty name is returned, # then we are accessing the home page. %] -[% script_name = cgi.url(Relative => 1) %] -[% IF !script_name %] - [% script_name = "index.cgi" %] -[% END %] - -[%# If SSL is in use, use 'sslbase', else use 'urlbase'. %] -[% IF Param("sslbase") != "" && Param("ssl") != "never" %] - [% script_name = Param("sslbase") _ script_name %] -[% ELSE %] - [% script_name = Param("urlbase") _ script_name %] +[% target = cgi.url("-relative" => 1, "-query" => 1) %] +[% IF !target %] + [% target = "index.cgi" %] [% END %] -<form name="login" action="[% script_name FILTER html %]" method="POST"> - <table id="login-small"> - <tr> - <th align="right"><label for="Bugzilla_login">Connexion :</label></th> - <td><input size="20" id="Bugzilla_login" name="Bugzilla_login"> - [% Param('emailsuffix') FILTER html %]</td> - </tr> - <tr> - <th align="right"><label for="Bugzilla_password">Mot de passe :</label></th> - <td> - <input type="password" size="20" id="Bugzilla_password" name="Bugzilla_password"> - </td> - </tr> - - [% IF Param('rememberlogin') == 'defaulton' || - Param('rememberlogin') == 'defaultoff' %] - <tr> - <th> </th> - <td> - <input type="checkbox" id="Bugzilla_remember" name="Bugzilla_remember" value="on" - [%+ "checked" IF Param('rememberlogin') == "defaulton" %]> - <label for="Bugzilla_remember">Se souvenir de mes identifiants</label> - </td> - </tr> - [% END %] - - [% IF Param('loginnetmask') < 32 %] - <tr> - <th> </th> - <td> - <input type="checkbox" id="Bugzilla_restrictlogin" name="Bugzilla_restrictlogin" - checked="checked"> - <label for="Bugzilla_restrictlogin">Restreindre cette session à cette adresse IP - (utiliser cette option améliore la sécurité)</label> - </td> - </tr> - [% END %] - - <tr> - <td><input type="submit" name="GoAheadAndLogIn" value="Se connecter" - id="log_in"></td> - - [%# For now, password change requests only apply to the DB - # verification method #%] - - [% IF user.authorizer.can_change_password %] - <td>[ <a href="index.cgi?GoAheadAndLogIn=1#forgot">J'ai oublié mon mot de passe</a> ]</td> - [% END %] - </tr> - </table> - -</form> - +[% target = urlbase _ target %] +<li> + <form name="login" action="[% target FILTER html %]" + class="mini_login" + method="POST" id="mini_login[% qs_suffix FILTER html %]" + onsubmit="return check_mini_login_fields( '[% qs_suffix FILTER html %]' );" + > + <span class="separator">| </span> + <input id="Bugzilla_login[% qs_suffix FILTER html %]" + class="bz_login" + name="Bugzilla_login" + onfocus="mini_login_on_focus( this )" + > + <input class="bz_password" + id="Bugzilla_password[% qs_suffix FILTER html %]" + name="Bugzilla_password" + type="password" + onfocus="mini_login_on_focus( this )" + > + <input type="submit" name="GoAheadAndLogIn" value="Se connecter" id="log_in"> + [<a href="[% target FILTER html %]?GoAheadAndLogIn=1">options</a>] + <div class="bz_default_hidden"> + [% PROCESS "global/hidden-fields.html.tmpl" + exclude="^Bugzilla_(login|password|restrictlogin)$" %] + </div> + <script type="text/javascript"> + mini_login_constants = { + "login" : "login", + "password" : "password", + "warning" : "Vous devez saisir un identifiant et un mot de passe pour vous connecter." + } + YAHOO.util.Event.onDOMReady(function() { + init_mini_login_form('[% qs_suffix FILTER html %]'); + } ); + </script> + </form> +</li> |