Use type=email for email fields

Setting the input type gives the use a hint that the field should be an
email and also shows an error when a non-email is filled into the email
field.
This commit is contained in:
Jelle van der Waa 2021-06-27 17:25:46 +02:00
parent 0a3aa40f20
commit b2491ddc07
No known key found for this signature in database
GPG key ID: C06086337C50773E

View file

@ -89,7 +89,7 @@
{% trans %}Email Address{% endtrans %}:
</label>
<input id="id_email" type="text"
<input id="id_email" type="email"
size="30" maxlength="254" name="E" value="{{ email }}">
({% trans %}required{% endtrans %})
</p>
@ -119,7 +119,7 @@
{% trans %}Backup Email Address{% endtrans %}:
</label>
<input id="id_backup_email" type="text" size="30"
<input id="id_backup_email" type="email" size="30"
maxlength="254" name="BE" value="{{ backup }}">
</p>
<p>