From 9671f7b3e02fc7bba316687d07ec54a494636b1d Mon Sep 17 00:00:00 2001 From: catborise Date: Thu, 11 May 2023 13:34:08 +0300 Subject: [PATCH 1/4] update requirements --- conf/requirements.txt | 6 +++--- dev/requirements.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/requirements.txt b/conf/requirements.txt index 13d58b5..c227892 100644 --- a/conf/requirements.txt +++ b/conf/requirements.txt @@ -1,12 +1,12 @@ -Django==3.2.18 +Django==3.2.19 django_bootstrap5==23.1 django-login-required-middleware==0.9.0 django-otp==1.1.6 -django-icons==23.1 +django-icons==23.2 django-qr-code==3.1.1 gunicorn==20.1.0 libsass==0.22.0 -libvirt-python==9.2.0 +libvirt-python==9.3.0 lxml==4.9.2 qrcode==7.4.2 rwlock==0.0.7 diff --git a/dev/requirements.txt b/dev/requirements.txt index 78bf6b9..9e2fba3 100644 --- a/dev/requirements.txt +++ b/dev/requirements.txt @@ -1,8 +1,8 @@ -r ../conf/requirements.txt -coverage==7.2.3 +coverage==7.2.5 django-debug-toolbar==4.0.0 pycodestyle==2.10.0 pyflakes==3.0.1 -pylint==2.17.3 +pylint==2.17.4 yapf==0.33.0 black==23.3.0 From 86b03abd59219374792aac669b445f3f987c141e Mon Sep 17 00:00:00 2001 From: catborise Date: Thu, 11 May 2023 15:31:42 +0300 Subject: [PATCH 2/4] reorganize otp_login and login pages --- accounts/templates/accounts/otp_login.html | 45 +++++++++++++--------- accounts/templates/login.html | 15 ++++---- static/css/signin.css | 15 ++------ 3 files changed, 38 insertions(+), 37 deletions(-) diff --git a/accounts/templates/accounts/otp_login.html b/accounts/templates/accounts/otp_login.html index 8b4e654..bd7ce61 100644 --- a/accounts/templates/accounts/otp_login.html +++ b/accounts/templates/accounts/otp_login.html @@ -1,30 +1,37 @@ -{% extends 'base.html' %} +{% extends "base.html" %} {% load i18n %} {% load static %} {% load django_bootstrap5 %} -{% block title %}WebVirtCloud{% endblock title %} +{% block title %}{% trans "WebVirtCloud" %} - {% trans "Sign In with OTP" %}{% endblock title %} -{% block page_heading %}WebVirtCloud{% endblock page_heading %} +{% block style %} + +{% endblock style %} {% block content %} -
-
-
-
- {% if form.errors %} - {% bootstrap_form_errors form %} - {% endif %} - +
{% endblock content %} \ No newline at end of file diff --git a/accounts/templates/login.html b/accounts/templates/login.html index b81a63e..1a7da2d 100644 --- a/accounts/templates/login.html +++ b/accounts/templates/login.html @@ -2,7 +2,8 @@ {% load i18n %} {% load static %} -{% block title %}{% trans "WebVirtCloud" %} - {% trans "Sign In" %}{% endblock %} + +{% block title %}{% trans "WebVirtCloud" %} - {% trans "Sign In" %}{% endblock title %} {% block style %} @@ -11,19 +12,20 @@ {% block content %}