{% extends "base-apply.html" %} {% load i18n humanize invoice_tools %} {% block title %}{% trans "Invoice" %}: {{ object.invoice_number }} - {{ object.project.title }}{% endblock %} {% block body_class %}bg-light-grey{% endblock %} {% block content %} {% display_invoice_status_for_user user object as invoice_status %} {% adminbar %} {% slot back_link %} {% trans "View project page" %} {% endslot %} {% slot header %}{% trans "Invoice" %}: {{ object.invoice_number }}{% endslot %} {% slot sub_heading %}{% trans "For" %}: {{ object.project.title }}{% endslot %} {% endadminbar %}

{% trans "Invoice number" %}: {{ object.invoice_number }}

{% is_vendor_setup request as show_vendor_information %}

{% trans "Vendor" %}: {% if show_vendor_information %}{{ object.project.vendor.name }}{% else %}{{ object.project.user }}{% endif %}

{% trans "Lead" %}: {{ object.project.lead }}

{% trans "Fund" %}: {{ object.project.submission.page }}

{% trans "Status" %}:

{% extract_status latest_activity user as latest_activity_status %} {% get_comment_for_invoice_action object latest_activity as latest_activity_comment %}

{{ latest_activity_status }} {% if user.is_applicant and latest_activity.user != user %} ({{ ORG_SHORT_NAME }}){% else %}({{ latest_activity.user }}){% endif %} {{ latest_activity.timestamp }} {% if latest_activity_comment %} View comment {% endif %}

{% for activity in activities %} {% extract_status activity user as activity_status %} {% get_comment_for_invoice_action object activity as activity_comment %}

{{ activity_status }} {% if user.is_applicant and activity.user != user %} ({{ ORG_SHORT_NAME }}){% else %}({{ activity.user }}){% endif %} {{ activity.timestamp }} {% if activity_comment %} View comment {% endif %}

{% endfor %}

{% trans "View" %}

{% trans "Hide" %}

{% trans "Invoice" %}

{{object.filename}}

{% if object.supporting_documents.exists %}
{% trans "Supporting Documents" %}
{% for document in object.supporting_documents.all %}

{{document.filename}}

{% endfor %}
{% endif %}
{% endblock %}