From 8bf28a4f33a72ef74062154239a9aabe5e2d1443 Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 12 May 2023 12:01:54 +0300 Subject: [PATCH] add loading spinner after submit to login pages --- accounts/templates/accounts/otp_login.html | 25 +++++++++++++++++++--- accounts/templates/login.html | 25 +++++++++++++++++++--- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/accounts/templates/accounts/otp_login.html b/accounts/templates/accounts/otp_login.html index bd7ce61..9d0803c 100644 --- a/accounts/templates/accounts/otp_login.html +++ b/accounts/templates/accounts/otp_login.html @@ -21,7 +21,7 @@ {% bootstrap_form_errors form %} {% endif %} -
{% csrf_token %} + {% csrf_token %} {% bootstrap_field form.username layout='inline' %} {% bootstrap_field form.password layout='inline' %} @@ -29,9 +29,28 @@ {% trans "I do not have/lost my OTP!" %}
- +
-{% endblock content %} \ No newline at end of file +{% endblock content %} + +{% block script %} + +{% endblock script%} diff --git a/accounts/templates/login.html b/accounts/templates/login.html index 1a7da2d..28e6769 100644 --- a/accounts/templates/login.html +++ b/accounts/templates/login.html @@ -22,15 +22,34 @@ {% trans "Incorrect username or password." %} {% endif %} -
{% csrf_token %} + {% csrf_token %}
- +
-{% endblock %} \ No newline at end of file +{% endblock %} + +{% block script %} + +{% endblock script%}