Commit fbb3b570 authored by Hive's avatar Hive

READ ONLY DATABASE

parent 66c1d506
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
{% extends "base.html" %}
{% extends 'base.html' %}
{% block content %}
{% load static %}
<head>
<div class="row">
{% for patient in patients %}
<div class="col">
<a href="https://www.w3schools.com">
<div class="card mx-auto" style="width: 18rem; height:10rem;">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<img class="card-img-top" src="https://www.cadredesante.com/spip/local/cache-vignettes/L379xH251/hopital-dessin-g-7f972.jpg" alt="Card image cap">
<title>SB Admin - Dashboard</title>
<div class="card-body">
<h5 class="card-title">Mes patients {{patient.first_name}}</h5>
</div>
<!-- Bootstrap core CSS-->
<link href="{% static 'dashboard/vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">
<!-- Custom fonts for this template-->
<link href="{% static 'dashboard/vendor/fontawesome-free/css/all.min.css' %}" rel="stylesheet" type="text/css">
<!-- Page level plugin CSS-->
<link href="{% static 'dashboard/vendor/datatables/dataTables.bootstrap4.css' %}" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="{% static 'dashboard/css/sb-admin.css' %}" rel="stylesheet">
<script language="javascript" type="text/javascript" src="{% static 'jquery.js' %}"></script>
<script language="javascript" type="text/javascript" src="{% static 'jquery.flot.js' %}"></script>
<script type="text/javascript">
$(function() {
var d1 = [];
for (var i = 0; i < 14; i += 0.5) {
d1.push([i, Math.sin(i)]);
}
var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
// A null signifies separate line segments
var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];
$.plot("#placeholder", [ d1, d2, d3 ]);
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
});
</script>
</head>
<body id="page-top">
<div class="demo-container">
<div id="placeholder" style="width:600px;height:300px" class="demo-placeholder"></div>
</div>
<div id="wrapper">
<div id="content-wrapper">
<div class="container-fluid">
<!-- Breadcrumbs-->
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#">Dashboard</a>
</li>
<li class="breadcrumb-item active">Overview</li>
</ol>
<div id="content">
<p>You don't have to do much to get an attractive plot. Create a placeholder, make sure it has dimensions (so Flot knows at what size to draw the plot), then call the plot function with your data.</p>
<p>The axes are automatically scaled.</p>
</div>
<div id="footer">
Copyright &copy; 2007 - 2014 IOLA and Ole Laursen
</div>
</a>
</div>
<!-- /.container-fluid -->
</div>
<!-- /.content-wrapper -->
</div>
{% if forloop.counter|divisibleby:"6" or forloop.last %}
</div> <!--end row-->
{% endif %}
{% endfor %}
<!-- /#wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="{% static 'dashboard/vendor/jquery/jquery.min.js' %}"></script>
<script src="{% static 'dashboard/vendor/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
<!-- Core plugin JavaScript-->
<script src="{% static 'dashboard/vendor/jquery-easing/jquery.easing.min.js' %}"></script>
<!-- Page level plugin JavaScript-->
<script src="{% static 'dashboard/vendor/chart.js/Chart.min.js' %}"></script>
<script src="{% static 'dashboard/vendor/datatables/jquery.dataTables.js' %}"></script>
<script src="{% static 'dashboard/vendor/datatables/dataTables.bootstrap4.js' %}"></script>
<!-- Custom scripts for all pages-->
<script src="{% static 'dashboard/js/sb-admin.min.js' %}"></script>
<!-- FusionCharts -->
<script type="text/javascript" src=" http://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script type="text/javascript" src=" http://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
{% endblock %}
......@@ -23,7 +23,7 @@ urlpatterns = [
path('update/raspi/<int:id>', views.update_raspi, name='update_raspi'),
path('update/doctor/<int:id>', views.update_doctor, name='update_doctor'),
path('update/patient/<int:id>', views.update_patient, name='update_patient'),
path('ok', views.handler404, name='ok'),
path('ok', views.testest, name='ok'),
]
handler404 = views.handler404
......
......@@ -33,6 +33,9 @@ def logout_view(request):
def index(request):
return render(request, 'index.html')
def testest(request):
return render(request, 'test.html')
def test(request):
all_data = Data.objects.all()
# Create an object for the column2d chart using the FusionCharts class constructor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment