{% extends "layout_bs4.html" %} {% from "overview/institute_sidebar.html" import institute_actionbar %} {% block title %} {{ super() }} - {{ institute.display_name }} - Advanced phenotype models {% endblock %} {% block css %} {{ super() }} {% endblock %} {% block top_nav %} {{ super() }} {% endblock %} {% macro phenomodels_macro() %} {{ confirm_delete() }} {{ create_model_macro() }} {{ phenomodel_list() }} {% endmacro %} {% block content_main %}
{{ institute_actionbar(institute) }}
{{ phenomodels_macro() }}
{% endblock %} {% macro confirm_delete() %}
{% endmacro %} {% macro create_model_macro() %}
Create new phenotype model
{{ pheno_form.model_name(class="form-control", placeholder="Name") }}
{{ pheno_form.model_desc(class="form-control", placeholder="Description (optional)") }}
{{ pheno_form.create_model(class="form-control btn-primary") }}
{% endmacro %} {% macro phenomodel_list() %}
{% for model in phenomodels %} {% endfor %}
Name Description Nr subpanels Created Updated
{{model.name}} {{model.description}} {{model.subpanels|length if model.subpanels else '0'}} {{model.created.strftime('%Y-%m-%d')}} {{model.updated.strftime('%Y-%m-%d')}}
{% endmacro %} {% block scripts %} {{ super() }} {% endblock %}