{% load base_filters %} {% load invoice_tags %} {% load perm_tags %} {% invoices_search_line_header request invoice '#996600' %} {# display form info #} {% if obj %} {% if invoice.create_dt %} {{ invoice.create_dt|date:"F j, Y"}} {% else %}   {% endif %} {{ invoice.pk }} {% if obj.creator.first_name %} {{ obj.creator.first_name }} {{ obj.creator.last_name }} {% else %} {{ obj.creator.username }} {% endif %} Form #{{obj.id}}
{{ obj.form.title|truncatewords:5 }} {{invoice.total|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 %}