From a3479a963ef0d37ec8068799af76b499c4ecd02f Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Sat, 29 Apr 2023 16:40:28 +0200 Subject: [PATCH] Fix login test and minor update --- .gitignore | 1 + jarvis/core/templates/login.html | 44 +++++++++++++++++--------------- jarvis/profiles/views.py | 4 ++- static/css/nucleo-icons.css | 2 +- 4 files changed, 28 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index bc12e2b..17576a4 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ db.sqlite3 media *.yaml *.json +staticfiles/ # Python # *.py[cod] diff --git a/jarvis/core/templates/login.html b/jarvis/core/templates/login.html index 004b663..18289a9 100644 --- a/jarvis/core/templates/login.html +++ b/jarvis/core/templates/login.html @@ -25,9 +25,12 @@ - - - + + + + + + @@ -81,44 +84,43 @@ - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - - + - + diff --git a/jarvis/profiles/views.py b/jarvis/profiles/views.py index 4e66417..279ed2c 100644 --- a/jarvis/profiles/views.py +++ b/jarvis/profiles/views.py @@ -48,7 +48,9 @@ def profile_update(request): @login_required @require_http_methods(["GET", "POST"]) def notification_update(request): - gymnast_list = Gymnast.objects.filter(is_active=True) + gymnast_list = Gymnast.objects.filter(is_active=True).order_by( + "first_name", "last_name" + ) functionality_list = ContentType.objects.filter(app_label="followup") notification_dict = {} diff --git a/static/css/nucleo-icons.css b/static/css/nucleo-icons.css index 2efe160..1f41929 100644 --- a/static/css/nucleo-icons.css +++ b/static/css/nucleo-icons.css @@ -9,7 +9,7 @@ Created using IcoMoon - icomoon.io @font-face { font-family: 'Nucleo'; src: url('../fonts/nucleo.eot'); - src: url('../fonts/nucleo.eot') format('embedded-opentype'), url('../fonts/nucleo.woff2') format('woff2'), url('../fonts/nucleo.woff') format('woff'), url('../fonts/nucleo.ttf') format('truetype'), url('../fonts/nucleo.svg') format('svg'); + src: url('../fonts/nucleo.eot') format('embedded-opentype'), url('../fonts/nucleo.woff2') format('woff2'), url('../fonts/nucleo.woff') format('woff'), url('../fonts/nucleo.ttf') format('truetype'); font-weight: normal; font-style: normal; }