{% extends "base.html" %} {% block title %}Mouse Detail{% endblock title %} {% block scripts %}{% include "sortable_table_script.html" %}{% endblock scripts %} {% block header %}Mouse Detail - {{ animal }}{% endblock header %} {% block content %} {% if animal.Death %} This mouse died on {{ animal.Death }}. Cause of death was {{ animal.Cause_of_Death }}. This mouse was {{ animal.age }} days old. {% else %}{% if animal.Born %} This mouse is {{ animal.Born|timesince }} old. {% else %} This mouse has an unknown age. {% endif %}{% endif %} {% load custom_filters %} {% if animal.Death %} {% else %} {% endif %} {% if animal.Death %} {% else %} {% endif %}
MouseID Strain Background Genotype Gender Cage Rack Position Backcross Generation Born Age Status Markings
{{ animal.MouseID}} {{ animal.Strain }} {{ animal.Background }} {{ animal.Genotype }} {{ animal.Gender }} {% if animal.Cage %}{{ animal.Cage}}{% endif %} {{ animal.Rack|all_caps }} {{ animal.Rack_Position|all_caps }} {{ animal.Backcross }} {{ animal.Generation }} {{ animal.Born }}{{ animal.Death }}{{ animal.Born|timesince }}DeadAlive{{ animal.Markings }}
{% if perms.animal.change_animal %} {% endif %} {% if perms.animal.add_animal %} {% endif %} {% if perms.animal.delete_animal %} {% endif %}
{% if animal.Breeding %}

Breeding Summary

{% with animal.Breeding as breeding %} {% include "breeding_summary_table.html" %} {% endwith %}
{% endif %} {% if animal.cohort_set.count > 0 %}

Cohort Summary

{% endif %} {% if animal.treatment_set.count > 0 %}

Treatment Summary

{% endif %}

Measurement Summary

{% if animal.measurement_set.all.count > 0 %} {% with animal.measurement_set.all as data_list %} {% include "data_table.html" %} {% endwith %} {% else %}

No measurements for this animal.

{% endif %}
{% if animal.medicalissue_set.count > 0 %}

Veterinary Summary

This mouse has had {{ animal.medicalissue_set.count }} medical issues.

{% with animal.medicalissue_set.all as medical_issues %} {% include "veterinary_summary_snippet.html" %} {% endwith %}
{% endif %} {% endblock content%}