{% extends "layout_bs4.html" %} {% block content_main %}
{{ dashboard_search_form() }} {% if total_cases == 0 %}
Your search didn't return any results!
{% elif total_cases %} {{ general_stats_panels() }} {{ cases_stats_panels() }} {{ variants_stats_panels() }} {% endif %}
{% endblock %} {% macro dashboard_search_form() %}
{{ dashboard_form.search_institute(class="form-control") }}
{{ dashboard_form.search_type(class="form-control", id="search_type") }}
{{ dashboard_form.search_term(class="form-control", placeholder="Search term", id="search_term") }}
{{ dashboard_form.search(class="form-control") }}
{% endmacro %} {% macro general_stats_panels() %}

Samples


{% for group in analysis_types %} {% endfor %}
Total {{ group.name|upper }} samples (not cases) {{ group.count }}

Cases


{% for group in cases %} {% endfor %}
Cases {{ group.status|capitalize }}: {{ group.count }} {{(group.percent * 100)|round(1)}}%

Pedigree info


{% for topic in pedigree %} {% endfor %}
{{ topic.title }} Cases {{ (topic.percent * 100)|round(1) }}%
{% endmacro %} {% macro cases_stats_panels() %}
{% for topic in overview %} {% endfor %}
{{ topic.title }} Cases: {{ topic.count }} {{ (topic.percent * 100)|round(1) }}%
{% endmacro %} {% macro variants_stats_panels() %}
{% for topic in variants %} {% endfor %}
{{ topic.title }} Cases: : {{ topic.count }} {{ (topic.percent * 100)|round(1) }}%

{% endmacro %} {% block scripts %} {{ super() }} {% endblock %}