Commit e6ce9042 authored by Mukhtar Ali's avatar Mukhtar Ali Committed by Frédéric Buclin

Bug 1041959: Turn all labels for input fields in user preferences into <label> elements

r=LpSolit
parent cb36753d
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th>Password:</th> <th><label for="old_password">Password:</label></th>
<td> <td>
<input type="hidden" name="old_login" value="[% user.login FILTER html %]"> <input type="hidden" name="old_login" value="[% user.login FILTER html %]">
<input type="password" name="old_password"> <input type="password" name="old_password" id="old_password">
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -34,24 +34,26 @@ ...@@ -34,24 +34,26 @@
[% IF user.authorizer.can_change_password %] [% IF user.authorizer.can_change_password %]
<tr> <tr>
<th>New password:</th> <th><label for="new_password1">New password:</label></th>
<td> <td>
<input type="password" name="new_password1"> <input type="password" name="new_password1" id="new_password1">
</td> </td>
</tr> </tr>
<tr> <tr>
<th>Confirm new password:</th> <th><label for="new_password2">Confirm new password:</label></th>
<td> <td>
<input type="password" name="new_password2"> <input type="password" name="new_password2" id="new_password2">
</td> </td>
</tr> </tr>
[% END %] [% END %]
<tr> <tr>
<th>Your real name (optional, but encouraged):</th> <th>
<label for="realname">Your real name (optional, but encouraged):</label>
</th>
<td> <td>
<input size="35" name="realname" value="[% realname FILTER html %]"> <input size="35" name="realname" id="realname" value="[% realname FILTER html %]">
</td> </td>
</tr> </tr>
...@@ -79,11 +81,13 @@ ...@@ -79,11 +81,13 @@
[% ELSE %] [% ELSE %]
<tr> <tr>
<th> <th>
[% IF Param('emailsuffix') %] <label for="new_login_name">
New login: [% IF Param('emailsuffix') %]
[% ELSE %] New login:
New email address: [% ELSE %]
[% END %] New email address:
[% END %]
</label>
</th> </th>
<td> <td>
<input size="35" id="new_login_name" name="new_login_name" <input size="35" id="new_login_name" name="new_login_name"
......
...@@ -78,7 +78,8 @@ generated for you.</p> ...@@ -78,7 +78,8 @@ generated for you.</p>
<p> <p>
<input type="checkbox" name="new_key" id="new_key"> <input type="checkbox" name="new_key" id="new_key">
Generate a new API key with optional description <label for="new_key">Generate a new API key</label> with
<label for="new_description">optional description</label>
<input name="new_description" id="new_description"> <input name="new_description" id="new_description">
</p> </p>
...@@ -222,7 +222,9 @@ preferences for <em>their</em> relationship to the [% terms.bug %] ...@@ -222,7 +222,9 @@ preferences for <em>their</em> relationship to the [% terms.bug %]
</p> </p>
[% IF watchedusers.size %] [% IF watchedusers.size %]
<p>You are watching everyone in the following list:</p> <p>
<label for="watched_by_you">You are watching everyone in the following list:</label>
</p>
<p> <p>
<select id="watched_by_you" name="watched_by_you" multiple="multiple" size="5"> <select id="watched_by_you" name="watched_by_you" multiple="multiple" size="5">
[% FOREACH w = watchedusers %] [% FOREACH w = watchedusers %]
...@@ -238,7 +240,8 @@ preferences for <em>their</em> relationship to the [% terms.bug %] ...@@ -238,7 +240,8 @@ preferences for <em>their</em> relationship to the [% terms.bug %]
[% END %] [% END %]
<p id="new_watched_by_you">Add users to my watch list (comma separated list): <p id="new_watched_by_you">
<label for="new_watchedusers">Add users to my watch list (comma separated list):</label>
[% INCLUDE global/userselect.html.tmpl [% INCLUDE global/userselect.html.tmpl
id => "new_watchedusers" id => "new_watchedusers"
name => "new_watchedusers" name => "new_watchedusers"
...@@ -279,7 +282,8 @@ preferences for <em>their</em> relationship to the [% terms.bug %] ...@@ -279,7 +282,8 @@ preferences for <em>their</em> relationship to the [% terms.bug %]
<td> <td>
<input type="checkbox" name="remove_ignored_bug_[% bug.id FILTER html %]" value="1"> <input type="checkbox" name="remove_ignored_bug_[% bug.id FILTER html %]" value="1">
</td> </td>
<td><a href="[% urlbase FILTER html %]show_bug.cgi?id=[% bug.id FILTER uri %]"> <td>
<a href="[% urlbase FILTER html %]show_bug.cgi?id=[% bug.id FILTER uri %]">
[% bug.id FILTER html %]</a> [% bug.id FILTER html %]</a>
</td> </td>
<td>[% bug.status FILTER html %]</td> <td>[% bug.status FILTER html %]</td>
...@@ -297,7 +301,7 @@ preferences for <em>their</em> relationship to the [% terms.bug %] ...@@ -297,7 +301,7 @@ preferences for <em>their</em> relationship to the [% terms.bug %]
[% END %] [% END %]
<p> <p>
Add [% terms.bugs %]:<br> <label for="add_ignored_bugs">Add [% terms.bugs %]:</label>
<input type="text" id="add_ignored_bugs" <input type="text" id="add_ignored_bugs"
name="add_ignored_bugs" size="60"> name="add_ignored_bugs" size="60">
</p> </p>
......
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
[% default_val = settings.${name}.default_value %] [% default_val = settings.${name}.default_value %]
<tr> <tr>
<td class="right"> <td class="right">
[% setting_descs.$name OR name FILTER html %] <label for="[% name FILTER html %]">
[% setting_descs.$name OR name FILTER html %]
</label>
</td> </td>
<td> <td>
[% IF settings.${name}.is_enabled %] [% IF settings.${name}.is_enabled %]
......
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