mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
settings: Set the for=... attribute on <label>s
This means you can click the label to focus the corresponding box. Also, it's more consistent with our other HTML, and may have accessibility benefits. (imported from commit c40de1e4137eb8ce5c69775ebcae346af9ae4e32)
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="get_api_key_box">
|
<div id="get_api_key_box">
|
||||||
<form action="/json/fetch_api_key" method="post" class="settings">{% csrf_token %}
|
<form action="/json/fetch_api_key" method="post" class="settings">{% csrf_token %}
|
||||||
<label>Enter your password to get your API key</label>
|
<label for="password">Enter your password to get your API key</label>
|
||||||
<input type="password" autocomplete="off" name="password" id="get_api_key_password" value="" /><br />
|
<input type="password" autocomplete="off" name="password" id="get_api_key_password" value="" /><br />
|
||||||
<input type="submit" name="view_api_key" value="Get API Key" class="btn" />
|
<input type="submit" name="view_api_key" value="Get API Key" class="btn" />
|
||||||
</form>
|
</form>
|
||||||
@@ -35,28 +35,28 @@
|
|||||||
class="settings">{% csrf_token %}
|
class="settings">{% csrf_token %}
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><label>Full name: </label></td>
|
<td><label for="full_name">Full name: </label></td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="full_name" id="full_name"
|
<input type="text" name="full_name" id="full_name"
|
||||||
value="{{ user_profile.full_name }}" />
|
value="{{ user_profile.full_name }}" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><label>Old password: </label></td>
|
<td><label for="old_password">Old password: </label></td>
|
||||||
<td>
|
<td>
|
||||||
<input type="password" autocomplete="off"
|
<input type="password" autocomplete="off"
|
||||||
name="old_password" id="old_password" value="" />
|
name="old_password" id="old_password" value="" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><label>New password: </label></td>
|
<td><label for="new_password">New password: </label></td>
|
||||||
<td>
|
<td>
|
||||||
<input type="password" autocomplete="off"
|
<input type="password" autocomplete="off"
|
||||||
name="new_password" id="new_password" value="" />
|
name="new_password" id="new_password" value="" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><label>Confirm password: </label></td>
|
<td><label for="confirm_password">Confirm password: </label></td>
|
||||||
<td><input type="password" autocomplete="off"
|
<td><input type="password" autocomplete="off"
|
||||||
name="confirm_password" id="confirm_password"
|
name="confirm_password" id="confirm_password"
|
||||||
value="" />
|
value="" />
|
||||||
|
|||||||
Reference in New Issue
Block a user