{% extends "corporate_memberships/base-wide.html" %} {% load bootstrap_pagination_tags %} {% load base_filters %} {% block extra_head %} {{ block.super }} {% endblock %} {% block content %}
{% autopaginate corp_members 30 %} {% for cm in corp_members %} {% if cm.donation and cm.donation.invoice %} {% elif cm.invoice %} {% else %} {% endif %} {% endfor %}
{% trans "Corporation" %} {% trans "Amount Donated" %} ({{ SITE_GLOBAL_CURRENCYSYMBOL }}) {% trans "Invoice" %} {% trans "Date" %} {% trans "Status" %}
{{ cm.corp_profile.name }} {{ cm.donation_amount }} {% if cm.donation and cm.donation.invoice %} {{ cm.donation.invoice.id }} {% elif cm.invoice %} {{ cm.invoice.id }} {% endif %} {{ cm.create_dt|date:"F j, Y" }} {% if cm.donation.invoice.balance == 0 %} {% if cm.donation.invoice.is_void %} {% comment %}Translators: Void adjective {% endcomment %} {% trans 'Void' %} {% else %} {% trans 'Paid' %} {% endif %} {% else %} Balance: {{ cm.donation.invoice.balance|format_currency }} {% endif %} {% if cm.invoice.balance == 0 %} {% if cm.invoice.is_void %} {% comment %}Translators: Void adjective {% endcomment %} {% trans 'Void' %} {% else %} {% trans 'Paid' %} {% endif %} {% else %} {% trans 'Not Paid' %} {% endif %}  
{% paginate %}
{% endblock content %}