From bb38cef013934bd4aa287f0ca76a941069c929ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Ates?= Date: Mon, 9 Nov 2015 17:45:03 +0100 Subject: [PATCH] Display default minimal episode duration on patient SAP page. --- src/biomon/static/biomon/css/biomonitor.css | 4 ++++ src/biomon/templates/biomon/patient_detail.html | 1 + src/biomon/views.py | 1 + 3 files changed, 6 insertions(+) diff --git a/src/biomon/static/biomon/css/biomonitor.css b/src/biomon/static/biomon/css/biomonitor.css index 9fa152e..4b8ebc7 100644 --- a/src/biomon/static/biomon/css/biomonitor.css +++ b/src/biomon/static/biomon/css/biomonitor.css @@ -825,6 +825,10 @@ color: purple; * Simple alert profile */ +div.tab-content-inner p{ +margin: 20px; +} + div.sap-metric { color: #FFF; border-color: rgba(255, 255, 255, 0.12); diff --git a/src/biomon/templates/biomon/patient_detail.html b/src/biomon/templates/biomon/patient_detail.html index bed351e..dcd3bb5 100644 --- a/src/biomon/templates/biomon/patient_detail.html +++ b/src/biomon/templates/biomon/patient_detail.html @@ -116,6 +116,7 @@
+

{% trans "Default minimal duration" %} : {{ default_episode_duration }} {% trans "seconds" %}

{% csrf_token %} {{ forms.simple_alert_profile.non_field_errors }}
diff --git a/src/biomon/views.py b/src/biomon/views.py index cce7708..12f86e6 100644 --- a/src/biomon/views.py +++ b/src/biomon/views.py @@ -138,6 +138,7 @@ class PatientDetail(cbv.MultiUpdateView): except: pass context['display_alert_profile'] = settings.DISPLAY_ALERT_PROFILE + context['default_episode_duration'] = settings.DEFAULT_EPISODE_DURATION return context