From d02545df88500129d0236b054475f9df3539b627 Mon Sep 17 00:00:00 2001 From: Julian Lobbes Date: Mon, 31 Jul 2023 02:41:13 +0200 Subject: [PATCH] fix: update navbar --- README.md | 15 +++++++++++++-- app/core/settings.py | 6 +++++- app/core/templates/core/navbar.html | 3 +-- .../templates/medwings/mews-continue.html | 14 +++++++------- assets/css/styles.css | 4 ++++ 5 files changed, 30 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index bac1c6b..5d7c446 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Mobile Early Deterioration Warning System. -# MEWS +## MEWS The following vital signs need to be recorded for a MEWS calculation: @@ -14,7 +14,7 @@ The following vital signs need to be recorded for a MEWS calculation: A detailed explanation and formula [can be found here](https://www.mdcalc.com/calc/1875/modified-early-warning-score-mews-clinical-deterioration#evidence). -# Handheld Devices +## Handheld Devices We have procured the following devices for vitals data measurement: @@ -39,6 +39,17 @@ as well as an [API reference guide](https://developer.withings.com/api-reference # Development +## TODOs + +- [ ] implement regular notifications +- [ ] fix colourtheme +- [ ] fix favicons +- [ ] add text content +- [ ] fix overflow on `mews-continue` +- [ ] add `register-final` view + +## Starting the dev environment + To start the development compose-stack, run the following command: ```bash diff --git a/app/core/settings.py b/app/core/settings.py index ad5094a..08fe60b 100644 --- a/app/core/settings.py +++ b/app/core/settings.py @@ -24,7 +24,11 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'django-insecure-s^q)z%f-7=1h5b00ctki2*-w=#3!k@p-#sq%=eajw)x2axx-e5' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = [ + 'localhost', + '127.0.0.1', + '192.168.2.141' +] # Application definition diff --git a/app/core/templates/core/navbar.html b/app/core/templates/core/navbar.html index 05e2d1a..d5e18d2 100644 --- a/app/core/templates/core/navbar.html +++ b/app/core/templates/core/navbar.html @@ -44,9 +44,8 @@ - Home {% if request.user.is_authenticated %} - Dashboard + Dashboard {% endif %} {% if request.user.is_authenticated %} Record Vitals diff --git a/app/medwings/templates/medwings/mews-continue.html b/app/medwings/templates/medwings/mews-continue.html index 2bc9479..b55c280 100644 --- a/app/medwings/templates/medwings/mews-continue.html +++ b/app/medwings/templates/medwings/mews-continue.html @@ -8,12 +8,12 @@ {% block content %}

Record your health status

-
+

Blood Pressure (systolic)

-
-
-
-
-
- diff --git a/assets/css/styles.css b/assets/css/styles.css index e9a8396..6f95eda 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -126,6 +126,10 @@ div.call-to-action-box { @apply rounded-md py-4 px-6; } +.loader { + overflow: hidden; +} + .loader--loading { animation: loading 2s infinite linear; }