{% load base_filters %} {% load invoice_tags %} {% load perm_tags %} {% invoices_search_line_header request invoice '#ff6600' %} {# display event registration #} {% if obj %} {% if invoice.create_dt %} {{ invoice.create_dt|date:"F j, Y"}} {% else %}   {% endif %} {{ invoice.pk }} {% if obj.event.pk %} {% spaceless %} {% with obj.registrant_set.all as registrants %} {% if registrants %} {% for reg in registrants %} {% if reg.get_name %} {{ reg.get_name }} {% else %} {% if reg.user %} {{ reg.user.username }} {% else %} {% trans "Guest #" %}{{ forloop.counter0 }} {% endif %} {% endif %} {% if not forloop.last %}, {% endif %} {% endfor %} {% else %} {{ obj.owner.username }} {% endif %} {% endwith %} {% endspaceless %} Reg. # {{obj.pk}}
Event: {{ obj.event.title|truncatewords:5 }} {% endif %} {{obj.amount_paid|format_currency}} {% if invoice.balance == 0 %} Paid {% else %} Balance: {{ invoice.balance }} {% endif %} {% if request.user.is_superuser %} {% if invoice.balance == 0 %} View Invoice {% else %} {% trans "Mark as Paid" %}     {% endif %} {% else %} View Invoice {% endif %} {% has_perm request.user invoices.change_invoice as can_edit_invoice %}     {% endif %}