acf252f7f3
On the login page, give focus to the username box when the page loads as well as turning autocorrection and auto-capitalization off on the username box. For the developer profile page, we can add some minor validation and typing of certain form fields that allow things like iPhone and Android to customize the presented keyboard to the user, as well as allowing browsers to do some client-side validation. Signed-off-by: Dan McGee <dan@archlinux.org>
34 lines
906 B
HTML
34 lines
906 B
HTML
{% extends "base.html" %}
|
|
{% load static from staticfiles %}
|
|
|
|
{% block title %}Arch Linux - Developer Login{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id="dev-login" class="box">
|
|
|
|
<h2>Developer Login</h2>
|
|
|
|
{% if form.has_errors %}
|
|
<p class="login-error">Your username and password didn't match. Please try again.</p>
|
|
{% endif %}
|
|
|
|
<form id="dev-login-form" method="post">{% csrf_token %}
|
|
<fieldset>
|
|
<legend>Enter login credentials</legend>
|
|
{{ form.as_p }}
|
|
<p><label></label> <input type="submit" value="Login" /></p>
|
|
</fieldset>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% load cdn %}{% jquery %}
|
|
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
|
|
<script type="text/javascript">
|
|
modify_attributes({
|
|
'#id_username': {autocorrect: 'off', autocapitalize: 'off'}
|
|
});
|
|
$('#id_username').focus();
|
|
</script>
|
|
{% endblock %}
|