Commit 06341f3b authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Improve login form inputs

Add attributes to input forms to improve usability.
parent ecc3f26b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -5,8 +5,18 @@
{% block heading %}{% trans "Login" %}{% endblock %}
{% block form %}
	<input type="text" class="form-control" name="username"
		inputmode="email" required=""
		{% if form.data.username %}
		value="{{ form.data.username }}"
		{% else %}
		autofocus=""
		{% endif %}
		placeholder="{% trans "Username" %}" />
	<input type="password" class="form-control" name="password"
		autocomplete="off" required=""
		{% if form.data.username %}
		autofocus=""
		{% endif %}
		placeholder="{% trans "Password" %}" />
	<input type="submit" value="{% trans "Login" %}"
		class="btn btn-primary col-xs-12" />