Display default minimal episode duration on patient SAP page.
This commit is contained in:
parent
848aa480e5
commit
bb38cef013
|
@ -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);
|
||||
|
|
|
@ -116,6 +116,7 @@
|
|||
</div>
|
||||
<div class="tab-content" id="monitoring-profile">
|
||||
<div class="tab-content-inner">
|
||||
<p>{% trans "Default minimal duration" %} : {{ default_episode_duration }} {% trans "seconds" %}</p>
|
||||
<form action="" method="post" id="patient-alert-profile-form">{% csrf_token %}
|
||||
{{ forms.simple_alert_profile.non_field_errors }}
|
||||
<div class="sap-metric">
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Reference in New Issue