HTML validation: Fix <label for="…"> references.

These must refer to the id of an existing form control; id_username
doesn’t exist and streams_to_add isn’t a form control.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2018-07-06 17:28:41 -04:00
committed by Tim Abbott
parent 0d56aba4b5
commit 162e3444d7
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@
<div class="alert" id="dev_env_msg"></div>
{% endif %}
<div class="control-group">
<label class="control-label" for="streams_to_add">{{ _('Streams they should join') }}</label>
<label class="control-label">{{ _('Streams they should join') }}</label>
<div class="controls" id="streams_to_add"></div>
</div>
</div>

View File

@@ -24,7 +24,7 @@ $(function () {
<div class="inline-block relative">
<input type="text" class="email required" placeholder="{{ _("Enter your email address") }}"
id="email" name="email" required />
<label for="id_username">{{ _('Email') }}</label>
<label for="email">{{ _('Email') }}</label>
</div>
<button type="submit" class="new-organization-button register-button">{{ _("Create organization") }}</button>