{% extends "cm_portal/geriatric_index.html" %} {% block title %}| Inventory of Medicines{% endblock %} {% block page_title %}| Inventory of Medicines{% endblock %} {% load static %} {% block content %}

{% for building in building_list %}

{{ building }} - Male

{% include 'includes/maintenance_th.html' %} {% for resident in building.resident_set.all %} {% if resident.gender == 'M' and resident.vital_status == 'LI' %} {% include 'includes/maintenance_data.html' %} {% endif %} {% endfor %}

{{ building }} - Female

{% include 'includes/maintenance_th.html' %} {% for resident in building.resident_set.all %} {% if resident.gender == 'F' and resident.vital_status == 'LI' %} {% include 'includes/maintenance_data.html' %} {% endif %} {% endfor %}
{% endfor %}
{% endblock %}