HTML validation: Fix login page HTML errors.

"http://localhost:9981/accounts/find/":121.29-121.53: error: The value of the “for” attribute of the “label” element must be the ID of a non-hidden form control.
"http://localhost:9981/login/":168.41-168.94: error: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-07-17 23:12:54 -07:00 committed by Tim Abbott
parent 7bb5162fc7
commit 71b20aa7e2
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@
<div class="input-box moving-label horizontal">
<div class="inline-block relative">
<input type="text" autofocus id="emails" name="emails" required />
<label for="id_username">{{ _('Email addresses') }}</label>
<label for="emails">{{ _('Email addresses') }}</label>
</div>
<button type="submit">{{ _('Find accounts') }}</button>
</div>

View File

@ -129,7 +129,7 @@
{% endif %}
<button type="submit" name="button" class="full-width">
<img class="loader" src="/static/images/loader.svg" />
<img class="loader" src="/static/images/loader.svg" alt="" />
<span class="text">{{ _("Log in") }}</span>
</button>
</form>