{% extends 'base.html' %} {% load resource_filters %} {% block header_button %} New resource pool {% endblock %} {% block main %}
{% for resource_pool in resource_pools.qs %}

{{ resource_pool.name }}

{% if resource_pool.attribute_definitions.all|length == 0 %} {% else %} {% for attribute in resource_pool.attribute_definitions.all %} {% endfor %}
Attribute Produced Consumed Available Consumption
{{ attribute.name }} {{ attribute.total_produced | floatformat:0 }} {% if attribute.over_commitment_producers != 1 %} {% endif %} {{ attribute.total_consumed | floatformat:0 }} {% if attribute.over_commitment_consumers != 1 %} {% endif %} {{ attribute.total_produced|subtract:attribute.total_consumed | floatformat:0 }}
{{ attribute.percent_consumed }}%
{% endif %}
{% endfor %}
{% endblock %}