<div id="{{ component_key }}">
    {% if zero_displaced and zero_displaced.status %}
    <h5 class="info">
        {{ header|capitalize }}
    </h5>
    <p>
        {{ zero_displaced.message }}
    </p>
    {% elif needs %}
        <h5 class="info">
            {{ header|capitalize }}
        </h5>
        <table class="table table-striped condensed">
            <tbody>
                {% for group in needs %}
                <tr>
                    <th colspan="1" class="text-left">{{ group.header|capitalize }}</th>
                    <th class="text-right" colspan=1>{{ group.total_header|capitalize }}</th>
                </tr>

                    {% for item in group.needs %}
                    <tr>
                        <td colspan="1" class="text-left">{{ item.header|capitalize }}</td>
                        <td colspan="1" class="text-right">{{ item.value }}</td>
                    </tr>
                    {% endfor %}
                {% endfor %}
            </tbody>
        </table>
    {% endif %}
</div>