{% load base_filters %} {% load invoice_tags %} {% load i18n %} {% invoices_search_line_header request invoice '#ff6600' %} {# display event registration #} {% if obj %} {% if obj.event.pk %} {% endif %} {% endif %}
{% trans "RegID" %} {% trans "Reg" %} {% trans "Title" %} {% trans "Date" %} {% trans "Price" %} {% trans "Balance" %}
{{obj.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 %} {% blocktrans with title=obj.event.title|truncatewords:5 %}{{ title }}{% endblocktrans %}{{obj.event.start_dt|date:'long'}} {{obj.amount_paid|format_currency}}
0 %}class="body-copy-yellow"{% endif %}>{{invoice.balance|format_currency}}