Commit cfbe7958 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 314501: Use <label>'s on the login form - Patch by Frédéric Buclin…

Bug 314501: Use <label>'s on the login form - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=myk
parent 23d260a3
...@@ -36,39 +36,37 @@ ...@@ -36,39 +36,37 @@
<form name="login" action="[% script_name FILTER html %]" method="POST"> <form name="login" action="[% script_name FILTER html %]" method="POST">
<table> <table>
<tr> <tr>
<td align="right"><b>Login:</b></td> <th align="right"><label for="Bugzilla_login">Login:</label></th>
<td><input size="20" name="Bugzilla_login"> <td><input size="20" id="Bugzilla_login" name="Bugzilla_login">
[% Param('emailsuffix') FILTER html %]</td> [% Param('emailsuffix') FILTER html %]</td>
</tr> </tr>
<tr> <tr>
<td align="right"><b>Password:</b></td> <th align="right"><label for="Bugzilla_password">Password:</label></th>
<td><input type="password" size="20" name="Bugzilla_password"></td> <td>
<input type="password" size="20" id="Bugzilla_password" name="Bugzilla_password">
</td>
</tr> </tr>
[% IF Param('rememberlogin') == 'defaulton' || [% IF Param('rememberlogin') == 'defaulton' ||
Param('rememberlogin') == 'defaultoff' %] Param('rememberlogin') == 'defaultoff' %]
<tr> <tr>
<td>&nbsp;</td> <th>&nbsp;</th>
<td> <td>
<input type="checkbox" name="Bugzilla_remember" value="on" <input type="checkbox" id="Bugzilla_remember" name="Bugzilla_remember" value="on"
[% "checked" IF Param('rememberlogin') == "defaulton" %]> [% "checked" IF Param('rememberlogin') == "defaulton" %]>
Remember my Login <label for="Bugzilla_remember">Remember my Login</label>
</td> </td>
</tr> </tr>
[% END %] [% END %]
[% IF Param('loginnetmask') < 32 %] [% IF Param('loginnetmask') < 32 %]
<tr> <tr>
<td align="right"> <th>&nbsp;</th>
<b>
Restrict this session<br>
to this IP address:
</b>
</td>
<td> <td>
<input type="checkbox" name="Bugzilla_restrictlogin" <input type="checkbox" id="Bugzilla_restrictlogin" name="Bugzilla_restrictlogin"
checked="checked"> checked="checked">
(Using this option improves security) <label for="Bugzilla_restrictlogin">Restrict this session to this IP address
(using this option improves security)</label>
</td> </td>
</tr> </tr>
[% END %] [% END %]
......
...@@ -38,47 +38,39 @@ ...@@ -38,47 +38,39 @@
<form name="login" action="[% target FILTER html %]" method="POST"> <form name="login" action="[% target FILTER html %]" method="POST">
<table> <table>
<tr> <tr>
<td align="right"> <th align="right"><label for="Bugzilla_login">Login:</label></th>
<b>Login:</b>
</td>
<td> <td>
<input size="35" name="Bugzilla_login"> <input size="35" id="Bugzilla_login" name="Bugzilla_login">
[% Param('emailsuffix') FILTER html %] [% Param('emailsuffix') FILTER html %]
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="right"> <th align="right"><label for="Bugzilla_password">Password:</label></th>
<b>Password:</b>
</td>
<td> <td>
<input type="password" size="35" name="Bugzilla_password"> <input type="password" size="35" id="Bugzilla_password" name="Bugzilla_password">
</td> </td>
</tr> </tr>
[% IF Param('rememberlogin') == 'defaulton' || [% IF Param('rememberlogin') == 'defaulton' ||
Param('rememberlogin') == 'defaultoff' %] Param('rememberlogin') == 'defaultoff' %]
<tr> <tr>
<td>&nbsp;</td> <th>&nbsp;</th>
<td> <td>
<input type="checkbox" name="Bugzilla_remember" value="on" <input type="checkbox" id="Bugzilla_remember" name="Bugzilla_remember" value="on"
[% "checked" IF Param('rememberlogin') == "defaulton" %]> [% "checked" IF Param('rememberlogin') == "defaulton" %]>
Remember my Login <label for="Bugzilla_remember">Remember my Login</label>
</td> </td>
</tr> </tr>
[% END %] [% END %]
[% IF Param('loginnetmask') < 32 %] [% IF Param('loginnetmask') < 32 %]
<tr> <tr>
<td align="right"> <th>&nbsp;</th>
<b>
Restrict this session<br>
to this IP address:
</b>
</td>
<td> <td>
<input type="checkbox" name="Bugzilla_restrictlogin" <input type="checkbox" id="Bugzilla_restrictlogin" name="Bugzilla_restrictlogin"
checked="checked"> checked="checked">
(Using this option improves security) <label for="Bugzilla_restrictlogin">Restrict this session to this IP address
(using this option improves security)</label>
</td> </td>
</tr> </tr>
[% END %] [% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment