covid-plotter/templates/index.template.html

106 lines
4.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Covid-19 DREES dataset</title>
<meta charset="UTF-8">
<meta name="keywords" content="thegux, covid">
<link rel="stylesheet" href="{{ static }}/css/index.css">
<meta name="description" content="A simple page to share some useful data about DREES covid 19 dataset">
</head>
<body>
<div class="main-container">
<h1>Covid-19 DREES dataset</h1>
<div>source : <a href="{{ src }}">Data DREES</a></div>
<div>période temporelle : <b>{{ period }}</b></div>
<div>pas de temps : <b>journalier</b></div>
<div>contact: <b>admin@thegux.fr</b></div>
<hr/>
<h3>Données globales</h3>
<h5>Répartition des tranches d'âges par catégorie (moyennée sur la période temporelle)</h5>
<div class="table-container">
{% for field in fields %}
<div class="table-item">
<table>
<tr>
<th colspan="2">{{ field.label }}</th>
</tr>
<tr>
<th>Age</th>
<th>%</th>
</tr>
{% for mean in age_mean %}
{% if field.label == mean.field %}
<tr>
<td>{{ mean.age }}</td>
<td>{{ mean.percent }}</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
{% endfor %}
</div>
<h5>Pourcentage de vaccinés par catégorie (moyenné sur la période temporelle)</h5>
<div class="table-container">
{% for field in fields %}
<div class="table-item">
<table>
<tr>
<th colspan="2">{{ field.label }}</th>
</tr>
<tr>
<th>Age</th>
<th>%</th>
</tr>
{% for mean in vaccine_mean %}
{% if field.label == mean.field %}
<tr>
<td>{{ mean.age }}</td>
<td>{{ mean.percent }}</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
{% endfor %}
</div>
<hr/>
<h3>Hospitalisations/Soins critiques/Décés par status vaccinal et tranches d'âges groupées</h3>
{% for field in fields %}
<img src="{{ static }}/plots/age_percent_vac_{{ field.name.lower() }}.png"/>
<img src="{{ static }}/plots/age_percent_unvac_{{ field.name.lower() }}.png"/>
{% endfor %}
<hr/>
<h3>Hospitalisations/Soins critiques/Décés par tranches d'âges et status vaccinal groupé</h3>
{% for age in ages %}
{% for field in fields %}
<img src="{{ static }}/plots/vac_percent_{{ age.name.lower() }}_{{ field.name.lower() }}.png"/>
{% endfor %}
{% endfor %}
<hr/>
<h3>Hospitalisations/Soins critiques/Décés par tranches d'âges et status vaccinal</h3>
<h4>NOTE: certains graphes peuvent être incomplets, cela signifie que des données sont manquantes à des pas de temps</h4>
<div class="plot-container">
{% for age in ages %}
{% for vac_status in status %}
<div class="plot-item">
<img src="{{ static }}/plots/all_{{ age.name.lower() }}_{{ vac_status.name.lower() }}.png"/>
</div>
{% endfor %}
{% endfor %}
</div>
<hr/>
<h3>Hospitalisations/Soins critiques/Décés cumulés par tranches d'âges et status vaccinal</h3>
<div class="plot-container">
{% for age in ages %}
{% for field in fields %}
<div class="plot-item">
<img src="{{ static }}/plots/cumulative_{{ age.name.lower() }}_{{ field.name.lower() }}.png"/>
</div>
{% endfor %}
{% endfor %}
</div>
</div>
</body>
</html>