fixed signup button and autofocus on user input fields
This commit is contained in:
@ -29,12 +29,16 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<button class="btn btn-success" type="submit">{% trans "Sign In" %}</button>
|
<button class="btn btn-success" type="submit">{% trans "Sign In" %}</button>
|
||||||
|
|
||||||
|
{% if SIGNUP_ENABLED %}
|
||||||
<a class="btn btn-secondary" href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a>
|
<a class="btn btn-secondary" href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if EMAIL_ENABLED %}
|
{% if EMAIL_ENABLED %}
|
||||||
<a class="btn btn-warning float-right d-none d-xl-block d-lg-block"
|
<a class="btn btn-warning float-right d-none d-xl-block d-lg-block"
|
||||||
href="{% url 'account_reset_password' %}">{% trans "Reset My Password" %}</a>
|
href="{% url 'account_reset_password' %}">{% trans "Reset My Password" %}</a>
|
||||||
<p class="d-xl-none d-lg-none">{% trans 'Lost your password?' %} <a href="{% url 'account_reset_password' %}">{% trans "Reset My Password" %}</a></p>
|
<p class="d-xl-none d-lg-none">{% trans 'Lost your password?' %} <a
|
||||||
|
href="{% url 'account_reset_password' %}">{% trans "Reset My Password" %}</a></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -62,5 +66,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$('#id_login').focus()
|
||||||
|
</script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
@ -71,4 +71,8 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$('#id_username').focus()
|
||||||
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
Reference in New Issue
Block a user