mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
Focus first input field on all login/registration forms
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
3f967cf751
commit
fea42407fb
|
@ -2,7 +2,7 @@
|
|||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" action=".">
|
||||
<form id="login_form" method="post" action=".">
|
||||
{{ form.as_p }}
|
||||
|
||||
<input type="submit" class="btn" value="{% trans 'Log in' %}" />
|
||||
|
@ -13,3 +13,12 @@
|
|||
<p>{% trans "Forgot password" %}? <a href="{% url auth_password_reset %}">{% trans "Reset it" %}</a>!</p>
|
||||
<p>{% trans "Not a member" %}? <a href="{% url registration_register %}">{% trans "Register" %}</a>!</p>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#login_form input:text, #login_form textarea").first().focus();
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% if validlink %}
|
||||
|
||||
<form method="post" action=".">
|
||||
<form id="password_form" method="post" action=".">
|
||||
{{ form.as_p }}
|
||||
|
||||
<input type="submit" class="btn" value="{% trans 'Submit' %}" />
|
||||
|
@ -18,3 +18,12 @@
|
|||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#password_form input:text, #password_form textarea").first().focus();
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,9 +2,18 @@
|
|||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" action=".">
|
||||
<form id="password_form" method="post" action=".">
|
||||
{{ form.as_p }}
|
||||
|
||||
<input type="submit" class="btn" value="{% trans 'Submit' %}" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#password_form input:text, #password_form textarea").first().focus();
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,10 +2,19 @@
|
|||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" action=".">
|
||||
<form id="registration_form" method="post" action=".">
|
||||
{{ form.as_p }}
|
||||
|
||||
<input type="submit" class="btn" value="{% trans 'Submit' %}" />
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#registration_form input:text, #registration_form textarea").first().focus();
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user