{% extends "base.dj.html" %} {% load nh3_tags %} {% load django_bootstrap5 %} {% block title %}Event Invoice for {{ event.details.ttl|nh3 }}{% endblock %} {% block admin_link %} {% url 'admin:membershipworks_eventext_change' event.pk %} {% endblock %} {% block breadcrumbs %} {% include "./components/event_breadcrumbs.dj.html" %} {% endblock %} {% block content %}
{% if event.registrations is not None %} {% url 'membershipworks:event-registrations' event.pk as registrations_url %} {% bootstrap_button href=registrations_url content="Show Registrations" %} {% endif %} {% include "membershipworks/event_invoice.dj.html" %}
{% if event.invoice %}

Invoice submitted on {{ event.invoice.date_submitted }} for ${{ event.invoice.amount|floatformat:2 }}, {% if event.invoice.date_paid %} paid on {{ event.invoice.date_paid }} {% else %} not paid yet {% endif %}

View PDF
{% elif not event.ready_for_invoice %}

This event is missing required information to generate an invoice. Please contact us at info@claremontmakerspace.org.

{% elif user_is_instructor %}
{% csrf_token %} {% bootstrap_form form %}
{% url "membershipworks:event-invoice-pdf-preview" event.eid as pdf_preview_link %} {% bootstrap_button button_class="btn-warning" href=pdf_preview_link content="Preview PDF" %} {% bootstrap_button button_type="submit" content="Submit Invoice" %}
{% else %}

No invoice has been created for this event, and you are not listed as the the instructor.

{% url "membershipworks:event-invoice-pdf-preview" event.eid as pdf_preview_link %} {% bootstrap_button button_class="btn-warning" href=pdf_preview_link content="Preview PDF" %}

{% endif %}
{% endblock %}